Skip to content

fix: disable balance check for eth_call RPCs#203

Open
qj0r9j0vc2 wants to merge 2 commits intomainfrom
fix/eth-call-balance-check
Open

fix: disable balance check for eth_call RPCs#203
qj0r9j0vc2 wants to merge 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

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