Skip to content
This repository has been archived by the owner on Oct 20, 2024. It is now read-only.

Error AA95 out of gas on legacy gas price #338

Open
suraneti opened this issue Nov 10, 2023 · 1 comment
Open

Error AA95 out of gas on legacy gas price #338

suraneti opened this issue Nov 10, 2023 · 1 comment

Comments

@suraneti
Copy link

This error occurred when I tested on a chain that doesn't enable EIP-1559. It seems like there may be a miscalculation in gas.

request body

{ 
  method: 'eth_estimateUserOperationGas',
  ...,
  maxFeePerGas: '0x1', // <-- a value is different when test on EIP-1559 enable/disable chain
  maxPriorityFeePerGas: '0x1' // <-- a value is different when test on EIP-1559 enable/disable chain
}
response

{"error":{"code":-32500,"data":{"OpIndex":0,"Reason":"AA95 out of gas"},"message":"AA95 out of gas"},"id":43,"jsonrpc":"2.0"}
Step to reproduce for error case
1. run geth local with Berlin hardfork (EIP-1559 disabled)
2. deploy AA contracts
3. run stackup-bundler
4. run stackup-example-4337 scripts
Step to reproduce for success case
1. run geth local with London hardfork (EIP-1559 enabled)
2. deploy AA contracts
3. run stackup-bundler
4. run stackup-example-4337 scripts
@windswrold
Copy link

hello ,how to fix this err

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

No branches or pull requests

2 participants