diff --git a/packages/sdk/src/abi/Factory.ts b/packages/sdk/src/abi/Factory.ts index 292dd32e..cb2522f8 100644 --- a/packages/sdk/src/abi/Factory.ts +++ b/packages/sdk/src/abi/Factory.ts @@ -92,6 +92,45 @@ export const FactoryAbi = [ stateMutability: "view", type: "function", }, + { + inputs: [ + { + internalType: "bytes32", + name: "salt", + type: "bytes32", + }, + { + internalType: "string", + name: "uniqueAccountId", + type: "string", + }, + { + internalType: "bytes[]", + name: "initialValidators", + type: "bytes[]", + }, + { + internalType: "bytes[]", + name: "initialModules", + type: "bytes[]", + }, + { + internalType: "address[]", + name: "initialK1Owners", + type: "address[]", + }, + ], + name: "deployProxy7579Account", + outputs: [ + { + internalType: "address", + name: "accountAddress", + type: "address", + }, + ], + stateMutability: "nonpayable", + type: "function", + }, { inputs: [ { diff --git a/packages/sdk/src/client/actions/account.ts b/packages/sdk/src/client/actions/account.ts index 7ce80977..e1e6cbdb 100644 --- a/packages/sdk/src/client/actions/account.ts +++ b/packages/sdk/src/client/actions/account.ts @@ -88,7 +88,7 @@ export const deployAccount = async < chain: client.chain!, address: args.contracts.accountFactory, abi: FactoryAbi, - functionName: "deployProxySsoAccount", + functionName: "deployProxy7579Account", args: [ toHex(args.salt), accountId,