@zyfai/sdk 0.1.16 → 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,
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,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zyfai/sdk",
3
- "version": "0.1.16",
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",