Skip to content

Commit 027c233

Browse files
committed
fixes
1 parent 20c3112 commit 027c233

File tree

3 files changed

+160
-187
lines changed

3 files changed

+160
-187
lines changed

examples/gasless-custody-aa/package.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,13 @@
1212
"@turnkey/ethers": "workspace:*",
1313
"@turnkey/sdk-server": "workspace:*",
1414
"@turnkey/viem": "workspace:*",
15-
"@zerodev/ecdsa-validator": "5.4.9",
16-
"@zerodev/sdk": "5.4.41",
15+
"@zerodev/sdk": "5.5.2",
1716
"dotenv": "16.0.3",
1817
"ethers": "6.10.0",
1918
"permissionless": "0.1.45",
2019
"prompts": "2.4.2",
2120
"typescript": "5.4.3",
22-
"viem": "2.24.2",
21+
"viem": "2.37.8",
2322
"wagmi": "2.16.9"
2423
},
2524
"devDependencies": {

examples/gasless-custody-aa/src/eip7702.ts

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -73,31 +73,16 @@ const main = async () => {
7373
transport: http(),
7474
});
7575

76-
// upgrade EOAs to smart accounts
77-
const signerAuthorization = await signerClient.signAuthorization({
78-
chainId: chain.id,
79-
nonce: 0,
80-
address: kernelAddresses.accountImplementationAddress,
81-
});
82-
83-
const userAuthorization = await userClient.signAuthorization({
84-
chainId: chain.id,
85-
nonce: 0,
86-
address: kernelAddresses.accountImplementationAddress,
87-
});
88-
8976
const signerKernelAccount = await createKernelAccount(publicClient, {
9077
eip7702Account: signerClient,
9178
entryPoint,
9279
kernelVersion,
93-
eip7702Auth: signerAuthorization,
9480
});
9581

9682
const userKernelAccount = await createKernelAccount(publicClient, {
9783
eip7702Account: userClient,
9884
entryPoint,
9985
kernelVersion,
100-
eip7702Auth: userAuthorization,
10186
});
10287

10388
const paymasterClient = createZeroDevPaymasterClient({

0 commit comments

Comments
 (0)