Replies: 2 comments 3 replies
-
hello @voidash Could you please try to use the version We added a new requirement for We now use this information to know which chains are supported by your account. In your specific case of using 4337 with the Anvil network, the scope would be Before diving a bit more into your repro, could you try using version Thanks! |
Beta Was this translation helpful? Give feedback.
-
Referencing MetaMask/snap-account-abstraction-keyring#170 |
Beta Was this translation helpful? Give feedback.
-
I’m working with the MetaMask Snap for Account Abstraction Keyring
https://github.com/MetaMask/snap-account-abstraction-keyring/tree/main.
Version : 0.4.2
So following the docs : https://docs.metamask.io/snaps/features/custom-evm-accounts/#account-abstraction-erc-4337 which describes the following methods and diagram shows these methods are called in sequence:
eth_prepareUserOperation: Returns a pseudo userOp that we will use to estimate the fee
eth_decodeUserOperationCallData: Used by the UI to decode the call data to display it to the user
eth_patchUserOperation: Snap can change some of the properties of the userOp before we ask the Snap to sign it
eth_signUserOperation: The Snap actually sign the user op
So in my dapp when i call something like
I can see that
eth_prepareuserOperation
is being called but then it errors out withLooking at the diagram again this fails at
To reproduce my error, Here are more details
Entrypoint contract : v0.6.0 (0x5FF137D4b0FDCD49DcA30c7CF57E578a026d2789)
SimpleAccountFactory also hasn't been modified and is deployed as is
Rundler(bundler) is being run as
Beta Was this translation helpful? Give feedback.
All reactions