Skip to content

Commit

Permalink
fix: update sdk to match latest contracts interface
Browse files Browse the repository at this point in the history
  • Loading branch information
ly0va committed Dec 11, 2024
1 parent 841bfd5 commit dc6e79a
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 20 deletions.
6 changes: 3 additions & 3 deletions packages/auth-server/stores/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@ export const contractsByChain: Record<SupportedChainId, ChainContracts> = {
accountPaymaster: "0x0cE4c9b3eA74971210C114cc136eAE41148C8B5a",
},
[zksyncInMemoryNode.id]: {
session: "0x24ceE718D848063d09d2BeaCe31553524AcD366F",
passkey: "0x96b5403Bc85469AA3F387Bb468DFFd0fb8A3F767",
session: "0x62b019c03Db1f4d0C0b857fDabE4AbC9c60c2F70",
passkey: "0x21b8397BeF5128662564b8491676baa6754AFD47",
accountFactory: "0xd7385ba726A7b72933E63FCb0Dfee8Bcae63478c",
accountPaymaster: "0x9966A2f99e4A7ae9FBd6b7111568219B7C0e8E27",
accountPaymaster: "0xAF34a25b78066f2442fb4d7cA740A03E47769b71",
},
};

Expand Down
5 changes: 0 additions & 5 deletions packages/sdk/src/abi/Factory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,11 +102,6 @@ export const FactoryAbi = [
name: "_initialValidators",
type: "bytes[]",
},
{
internalType: "bytes[]",
name: "_initialHooks",
type: "bytes[]",
},
{
internalType: "address[]",
name: "_initialK1Owners",
Expand Down
1 change: 0 additions & 1 deletion packages/sdk/src/client/passkey/actions/account.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,6 @@ export const deployAccount = async <
toHex(args.salt),
accountId,
[encodedPasskeyModuleData, encodedSessionKeyModuleData],
[encodedSessionKeyModuleData],
[],
],
} as any;
Expand Down
17 changes: 7 additions & 10 deletions packages/sdk/src/client/session/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,20 +20,17 @@ export const signSessionTransaction = (args: {
[
{ type: "bytes", name: "sessionKeySignedHash" },
{ type: "address", name: "sessionContract" },
{ type: "bytes[]", name: "hooks" },
{ type: "bytes", name: "validatorData" },
],
[
args.sessionKeySignedHash,
args.sessionContract,
[
encodeSessionTx({
sessionConfig: args.sessionConfig,
to: args.to,
callData: args.callData,
timestamp: args.timestamp,
}),
// TODO: this is assuming there are no other hooks
],
encodeSessionTx({
sessionConfig: args.sessionConfig,
to: args.to,
callData: args.callData,
timestamp: args.timestamp,
}),
],
);
};
Expand Down

0 comments on commit dc6e79a

Please sign in to comment.