Skip to content

Commit

Permalink
fix: use deploy 7579 proxy account interface
Browse files Browse the repository at this point in the history
Attempting to deploy to sepolia and updating the contract locations is
harder than just changing the interface which still exists and is
compatiable
  • Loading branch information
cpb8010 committed Nov 20, 2024
1 parent 9e9c446 commit e8818d2
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 1 deletion.
39 changes: 39 additions & 0 deletions packages/sdk/src/abi/Factory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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: [
{
Expand Down
2 changes: 1 addition & 1 deletion packages/sdk/src/client/actions/account.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit e8818d2

Please sign in to comment.