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 execution revert case in estimate gas api #85

Merged
merged 3 commits into from
Mar 25, 2023

Conversation

zsluedem
Copy link
Collaborator

@zsluedem zsluedem commented Mar 25, 2023

Fix #84

Middleware error should be all internal errors which bundler user should not know that. I remove the trait bound on the error type. Be more concrete on the error.

@zsluedem zsluedem requested a review from Vid201 March 25, 2023 06:51
SimulateValidationError::UnknownError { error } => {
SimulationError::owned(SIMULATE_VALIDATION_ERROR_CODE, error, None::<bool>)
SimulationError::owned(ErrorCode::InternalError.code(), error, None::<bool>)
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@Vid201 I am curious why unknow error belongs to SIMULATE_VALIDATION_ERROR_CODE.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I changed that into internal error. But like your ideas on it.

@Vid201
Copy link
Member

Vid201 commented Mar 25, 2023

LGTM!

@Vid201 Vid201 merged commit 633d2f2 into silius-rs:main Mar 25, 2023
@zsluedem zsluedem deleted the fix-error branch March 25, 2023 09:39
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.

Throw UserOperationExecution in eth_estimateUserOperationGas
2 participants