eth-infinitism/account-abstraction

Initial UserOperation Fails with error regarding

Closed this issue · 0 comments

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.