cosmos / cosmos/evm

[Bug]: eth_call over-reports gas for native precompiles

Open
#1,182 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Go
Stars
164
Forks
215
Avg merge
3d 58m
Merged PRs (30d)
12

Description

eth_call reported a stricter gas floor than real broadcast via deliverTx for transactions reaching a native precompile like staking precompile. When simulate via eth_call before broadcasting then rejected otherwise-valid eth_estimateGas results with "out of gas," even though same gas value would have succeeded on chain. Pure-EVM contracts were unaffected.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing the eth_call gas-simulation path and compare it with deliverTx for transactions reaching the staking native precompile; eth_estimateGas is the affected caller. Reproduce the discrepancy with a native-precompile transaction and verify that eth_call no longer reports out of gas when the same gas value succeeds through deliverTx, while pure-EVM behavior remains unchanged.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
blockchain
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.