From 4c2fbdadf25ad3a42335dbb47213f15364580a0f Mon Sep 17 00:00:00 2001 From: qj0r9j0vc2 Date: Mon, 16 Feb 2026 17:48:42 +0900 Subject: [PATCH 1/2] fix: disable balance check for eth_call RPCs --- crates/rpc/Cargo.toml | 2 +- crates/rpc/src/adapters.rs | 11 +++++++---- 2 files changed, 8 insertions(+), 5 deletions(-) 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); From be51cc6be96cc6fa4d7b96366858db2e2627be82 Mon Sep 17 00:00:00 2001 From: qj0r9j0vc2 Date: Mon, 16 Feb 2026 18:31:49 +0900 Subject: [PATCH 2/2] fix: add codecov token to coverage upload --- .github/workflows/ci.yml | 1 + 1 file changed, 1 insertion(+) 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