Skip to content

eth_estimateGas fix error decoding#11077

Merged
svlachakis merged 7 commits into
masterfrom
11059-eth-estimate-gas
Apr 9, 2026
Merged

eth_estimateGas fix error decoding#11077
svlachakis merged 7 commits into
masterfrom
11059-eth-estimate-gas

Conversation

@svlachakis
Copy link
Copy Markdown
Contributor

@svlachakis svlachakis commented Apr 9, 2026

Fixes Closes Resolves #11059

Changes

EncodeErrorMessage fixes & tests

Types of changes

What types of changes does your code introduce?

  • Bugfix (a non-breaking change that fixes an issue)
  • New feature (a non-breaking change that adds functionality)
  • Breaking change (a change that causes existing functionality not to work as expected)
  • Optimization
  • Refactoring
  • Documentation update
  • Build-related changes
  • Other: Description

Testing

Requires testing

  • Yes
  • No

If yes, did you write tests?

  • Yes
  • No

@svlachakis svlachakis changed the title eth_estimateGas error decoding eth_estimateGas fix error decoding Apr 9, 2026
Copy link
Copy Markdown
Member

@LukaszRozmej LukaszRozmej left a comment

Choose a reason for hiding this comment

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

Is this cross-checked with other clients?

Comment thread src/Nethermind/Nethermind.Evm/TransactionSubstate.cs Outdated
@svlachakis
Copy link
Copy Markdown
Contributor Author

svlachakis commented Apr 9, 2026

Is this cross-checked with other clients?

Geth separates message (human-readable, ABI-decoded) from data (raw hex). Nethermind currently puts everything in message and code -32000 instead of 3. That's a bigger existing difference, which we I think we should tackle separately - this just fixes not returning bytes in the response.

Comment thread src/Nethermind/Nethermind.Evm/TransactionSubstate.cs Outdated
Comment thread src/Nethermind/Nethermind.Evm/TransactionSubstate.cs Outdated
Comment thread src/Nethermind/Nethermind.Evm/TransactionSubstate.cs
@svlachakis svlachakis requested a review from benaadams April 9, 2026 11:10
@svlachakis svlachakis merged commit a2168c7 into master Apr 9, 2026
444 of 445 checks passed
@svlachakis svlachakis deleted the 11059-eth-estimate-gas branch April 9, 2026 11:26
stdevMac pushed a commit that referenced this pull request Apr 10, 2026
* EncodeErrorMessage fixes & tests

* handle with IndexOfAnyInRange

* span

* SearchValues

* cleaner approach
svlachakis added a commit that referenced this pull request Apr 10, 2026
* EncodeErrorMessage fixes & tests

* handle with IndexOfAnyInRange

* span

* SearchValues

* cleaner approach
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Gnosis: eth_estimateGas returning "message":"\b\n\u001C'"

4 participants