Skip to content
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

Initial UserOperation Fails with error regarding #489

Closed
kishantrikon opened this issue Jun 20, 2024 · 0 comments
Closed

Initial UserOperation Fails with error regarding #489

kishantrikon opened this issue Jun 20, 2024 · 0 comments

Comments

@kishantrikon
Copy link

Description:

I am encountering an issue when deploying a smart account wallet using the initCode functionality in the initial UserOperation. Despite following standard practices for generating initCode, I consistently receive errors. Only getting errors with Account Abstraction version v0.7 Previous versions worked without this issue.

Context:

To run the Useroperation I'm Manually deploying the smart account wallet using the SimpleAccountFactory & after that subsequent UserOperations function seamlessly, including paymaster functionalities.

Issue:
The problem persists solely with the first UserOperation that includes the initCode.

Errors Encountered:
From Bundler: "AA20 account not deployed"
Direct Stimulation on EntryPoint Contract: "AA13 initCode failed or OOG" error.

InitCode Generation Process:
const initCode = ethers.utils.hexConcat([ Config.SIMPLE_ACCOUNT_FACTORY_ADDRESS, contract.newsimpleAccountFactory.interface.encodeFunctionData("createAccount", [owner.address, 0]) ]);

Observations:
Initial UserOperation with initCode fails with the errors.
Manual deployment of the smart account wallet allows subsequent UserOperations to work correctly.

The initial UserOperation with initCode should deploy the smart account wallet and allow subsequent UserOperations to function correctly without manual intervention.

I am looking for guidance or insights to resolve this issue. Any help or pointers would be immensely helpful.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant