@zyfai/sdk 0.1.15 → 0.1.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -475,7 +475,7 @@ var getSafeAccount = async (config) => {
475
475
  });
476
476
  const saltHex = (0, import_viem3.fromHex)((0, import_viem3.toHex)(effectiveSalt), "bigint");
477
477
  const signer = {
478
- ...owner.account,
478
+ ...owner,
479
479
  address: signerAddress,
480
480
  // Override with the signer address at top level
481
481
  signMessage: async (message) => {
@@ -497,7 +497,7 @@ var getSafeAccount = async (config) => {
497
497
  const safeAccount = await (0, import_accounts.toSafeSmartAccount)({
498
498
  client: publicClient,
499
499
  owners: [signer],
500
- // Pass the signer object with address at top level and signMessage capability
500
+ // Pass the owner object with address and signMessage capability
501
501
  version: "1.4.1",
502
502
  entryPoint: {
503
503
  address: import_account_abstraction.entryPoint07Address,
@@ -1212,8 +1212,7 @@ var ZyfaiSDK = class {
1212
1212
  const signer = sessions[0].sessionValidator;
1213
1213
  console.log("Session validator:", signer);
1214
1214
  const activation = await this.activateSessionKey(
1215
- signer || "0x2483DA3A338895199E5e538530213157e931Bf06",
1216
- // TODO: This is a temporary fix to avoid the session validator being null
1215
+ signer,
1217
1216
  signatureResult.signature,
1218
1217
  signatureResult.sessionNonces
1219
1218
  );
package/dist/index.mjs CHANGED
@@ -455,7 +455,7 @@ var getSafeAccount = async (config) => {
455
455
  });
456
456
  const saltHex = fromHex(toHex(effectiveSalt), "bigint");
457
457
  const signer = {
458
- ...owner.account,
458
+ ...owner,
459
459
  address: signerAddress,
460
460
  // Override with the signer address at top level
461
461
  signMessage: async (message) => {
@@ -477,7 +477,7 @@ var getSafeAccount = async (config) => {
477
477
  const safeAccount = await toSafeSmartAccount({
478
478
  client: publicClient,
479
479
  owners: [signer],
480
- // Pass the signer object with address at top level and signMessage capability
480
+ // Pass the owner object with address and signMessage capability
481
481
  version: "1.4.1",
482
482
  entryPoint: {
483
483
  address: entryPoint07Address,
@@ -1192,8 +1192,7 @@ var ZyfaiSDK = class {
1192
1192
  const signer = sessions[0].sessionValidator;
1193
1193
  console.log("Session validator:", signer);
1194
1194
  const activation = await this.activateSessionKey(
1195
- signer || "0x2483DA3A338895199E5e538530213157e931Bf06",
1196
- // TODO: This is a temporary fix to avoid the session validator being null
1195
+ signer,
1197
1196
  signatureResult.signature,
1198
1197
  signatureResult.sessionNonces
1199
1198
  );
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zyfai/sdk",
3
- "version": "0.1.15",
3
+ "version": "0.1.17",
4
4
  "description": "TypeScript SDK for ZyFAI Yield Optimization Engine - Deploy Safe smart wallets, manage session keys, and interact with DeFi protocols",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",