Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -365,6 +365,7 @@ jobs:
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./lcov.info
fail_ci_if_error: false
verbose: true
Expand Down
2 changes: 1 addition & 1 deletion crates/rpc/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ reth-primitives-traits = { workspace = true }
reth-transaction-pool = { git = "https://github.com/paradigmxyz/reth", tag = "v1.10.0" }

# EVM execution (revm 33.x uses modular crates)
revm = { version = "33.1.0", default-features = false, features = ["std", "secp256k1"] }
revm = { version = "33.1.0", default-features = false, features = ["std", "secp256k1", "optional_balance_check"] }
revm-primitives = "21"

# Middleware and utilities
Expand Down
11 changes: 7 additions & 4 deletions crates/rpc/src/adapters.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2239,9 +2239,10 @@ impl<P: Provider> EvmExecutionApi<P> {

// Configure chain settings
ctx.cfg.chain_id = self.chain_id;
// Disable nonce check for eth_call and eth_estimateGas
// These are simulation calls that shouldn't require valid nonce
// Disable nonce and balance checks for eth_call and eth_estimateGas
// These are simulation calls that shouldn't require valid nonce or sufficient balance
ctx.cfg.disable_nonce_check = true;
ctx.cfg.disable_balance_check = true;

// Set up transaction environment
ctx.tx.caller = from.unwrap_or(Address::ZERO);
Expand Down Expand Up @@ -2700,8 +2701,9 @@ where

// Configure chain settings
ctx.cfg.chain_id = self.chain_id;
// Disable nonce check for trace calls (simulation)
// Disable nonce and balance checks for trace calls (simulation)
ctx.cfg.disable_nonce_check = true;
ctx.cfg.disable_balance_check = true;

// Set up transaction environment
ctx.tx.caller = from.unwrap_or(Address::ZERO);
Expand Down Expand Up @@ -2812,8 +2814,9 @@ where

// Configure chain settings
ctx.cfg.chain_id = self.chain_id;
// Disable nonce check for trace calls (simulation)
// Disable nonce and balance checks for trace calls (simulation)
ctx.cfg.disable_nonce_check = true;
ctx.cfg.disable_balance_check = true;

// Set up transaction environment
ctx.tx.caller = from.unwrap_or(Address::ZERO);
Expand Down