diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 11443fca..24a4b864 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 diff --git a/crates/rpc/Cargo.toml b/crates/rpc/Cargo.toml index 243007d4..39e8d187 100644 --- a/crates/rpc/Cargo.toml +++ b/crates/rpc/Cargo.toml @@ -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 diff --git a/crates/rpc/src/adapters.rs b/crates/rpc/src/adapters.rs index 3e631734..bbe0f6e8 100644 --- a/crates/rpc/src/adapters.rs +++ b/crates/rpc/src/adapters.rs @@ -2239,9 +2239,10 @@ impl EvmExecutionApi

{ // 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); @@ -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); @@ -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);