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

feat(trace): use specific error string #6696

Merged
merged 2 commits into from
Jan 26, 2023

Conversation

revitteth
Copy link
Collaborator

@revitteth revitteth commented Jan 25, 2023

In v2.36.0 we correctly trace this transaction, however due to a code ordering issue in previous releases, there was an 'out of gas' response, because we fell through to the code here where ErrContractAddressCollision will be returned as such. This change isn't the fix, but ensures the actual error is returned.

@revitteth revitteth requested a review from hexoscott January 25, 2023 10:58
@revitteth revitteth force-pushed the feat/clearer-trace-error branch from 93bfedd to a457c70 Compare January 25, 2023 11:01
@revitteth revitteth force-pushed the feat/clearer-trace-error branch 4 times, most recently from a4bf96e to a1af8c7 Compare January 25, 2023 14:57
@revitteth revitteth force-pushed the feat/clearer-trace-error branch from a1af8c7 to ef2f8c2 Compare January 26, 2023 08:00
@revitteth
Copy link
Collaborator Author

Tests to follow in subsequent PR. This now returns the trace with the correct error.

A few notes:

  • etherscan seems to use the erigon version returning this as a gas error (or has that result cached)
  • nethermind return the same response as erigon v2.36.0 (no error output)

@revitteth revitteth force-pushed the feat/clearer-trace-error branch from a46b8b4 to c94033b Compare January 26, 2023 13:52
@revitteth revitteth merged commit 6559c15 into erigontech:devel Jan 26, 2023
@revitteth revitteth deleted the feat/clearer-trace-error branch January 26, 2023 14:10
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.

4 participants