-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add isValidAAEntrypoint and isWalletASmartWallet Onchain Kit utilities #20
base: main
Are you sure you want to change the base?
Add isValidAAEntrypoint and isWalletASmartWallet Onchain Kit utilities #20
Conversation
@cpcramer is attempting to deploy a commit to the wilsoncusack's projects Team on Vercel. A member of the Team first needs to authorize it. |
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
@cpcramer is this ready to merge? |
1b94f4f
to
7ad8967
Compare
Ready to merge |
// check entrypoint | ||
// not strictly needed given below check on implementation address, but leaving as example | ||
if (entrypoint.toLowerCase() !== ENTRYPOINT_ADDRESS_V06.toLowerCase()) | ||
if (!isValidAAEntrypoint({ entrypoint } as IsValidAAEntrypointOptions)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@cpcramer in this case I want to check if it is specifically version 6
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It checks for v6 but we should probably make that more explicit!
)[0]; | ||
if (implementationAddress != coinbaseSmartWalletV1Implementation) | ||
if ( | ||
!(await isWalletASmartWallet({ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we want this to be isWalletACoinbaseSmartWallet
just to be really clear?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah I think that's a good call. I'll update
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updating here coinbase/onchainkit#562
Add
isValidAAEntrypoint
andisWalletASmartWallet
Onchain Kit utilities to theTransact With Paymaster
demo.isValidAAEntrypoint
https://onchainkit.xyz/wallet/is-valid-aa-entrypointisWalletASmartWallet
https://onchainkit.xyz/wallet/is-wallet-a-smart-wallet