Jainil Sutaria pfp
Jainil Sutaria

@jainilsutaria.eth

Hmm can you try this out? I believe it should print the current authorized contract address. const code = await publicClient.getCode({ address: '0xFBA3912Ca04dd458c843e2EE08967fC04f3579c2', // Your EOA address }) if (!code || code.length === 0) console.log("Address has not been activated with 7702.") else console.log("current account implementation address is:" code.split('0xef0100')[1]) Here’s an example of the Zerodev SDK running this check to see whether or not it should run the authorization step! https://github.com/zerodevapp/sdk/blob/0ef509b177b9691afd021db87572420d6ffe18d7/plugins/ecdsa/account/create7702KernelAccount.ts#L243
1 reply
0 recast
1 reaction