Skip to content

Conversation

@cloudgray
Copy link
Contributor

@cloudgray cloudgray commented Oct 21, 2025

Description

Closes: #745

Changes

  • Enable state overrides for eth_estimateGas
  • Change blockNumber argument to blockNumberOrHash to align eth_estimateGas with go-ethereum.

Limitation

  • Block overrides is not applied.
  • Comparing to the return data from geth, eth_estimateGas of cosmos/evm returns less gas. It seems because the gas estimating logic of geth and cosmos/evm is quite different. But In this PR, just focus on state overrides.

Author Checklist

All items are required. Please add a note to the item if the item is not applicable and
please add links to any relevant follow up issues.

I have...

  • tackled an existing issue or discussed with a team member
  • left instructions on how to review the changes
  • targeted the main branch

@cloudgray cloudgray changed the title fix: eth_estimateGas api chore: apply state overrides to eth_estimateGas api Oct 21, 2025
@cloudgray cloudgray marked this pull request as ready for review October 21, 2025 10:17
@cloudgray cloudgray requested a review from vladjdk October 21, 2025 10:28
@vladjdk vladjdk added this pull request to the merge queue Oct 22, 2025
Merged via the queue into cosmos:main with commit fed5d32 Oct 22, 2025
23 checks passed
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.

[Chore] eth_estimateGas api does not support state overrides

2 participants