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

fix(rpc): fix gas estimation error decoding #263

Merged
merged 1 commit into from
Jul 20, 2023

Conversation

dancoombs
Copy link
Collaborator

No description provided.

src/rpc/eth/estimation.rs Outdated Show resolved Hide resolved
Comment on lines +146 to +147
} else if let Ok(err) = ContractRevertError::decode(&revert_data) {
Ok(Err(err.reason))
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Annoyingly the Entrypoint contract sometimes likes to use require(..., "AAxx ...") instead of revert FailedOp(...).

https://github.com/eth-infinitism/account-abstraction/blob/5e78f8635552e3c55fbced072056a77c8f1e8b75/contracts/core/EntryPoint.sol#L515

@dancoombs dancoombs force-pushed the danc/fix-estimation-err-decode branch from ce2d6b6 to a40bdaf Compare July 20, 2023 20:29
@dancoombs dancoombs merged commit e262dc3 into main Jul 20, 2023
5 checks passed
@dancoombs dancoombs deleted the danc/fix-estimation-err-decode branch July 20, 2023 20:35
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

Successfully merging this pull request may close these issues.

2 participants