Skip to content

fix: disable balance check for eth_call RPCs#203

Merged
qj0r9j0vc2 merged 2 commits intomainfrom
fix/eth-call-balance-check
Feb 17, 2026
Merged

fix: disable balance check for eth_call RPCs#203
qj0r9j0vc2 merged 2 commits intomainfrom
fix/eth-call-balance-check

Conversation

@qj0r9j0vc2
Copy link
Member

Summary

  • eth_call, eth_estimateGas, and debug_traceCall were failing with LackOfFundForMaxFee when the caller had insufficient balance, even though these are read-only simulations
  • Enable revm's optional_balance_check feature and set disable_balance_check = true in all 3 EVM simulation paths
  • Nonce check was already correctly disabled; this adds the missing balance check counterpart

Test plan

  • cargo build passes
  • cargo test passes (all crates, 0 failures)
  • Manual: cast call <contract> "balanceOf(address)" <addr> --rpc-url <node> returns data instead of LackOfFundForMaxFee error

@qj0r9j0vc2 qj0r9j0vc2 self-assigned this Feb 17, 2026
@qj0r9j0vc2 qj0r9j0vc2 merged commit 4aff943 into main Feb 17, 2026
10 checks passed
@qj0r9j0vc2 qj0r9j0vc2 deleted the fix/eth-call-balance-check branch February 17, 2026 01:28
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.

1 participant