diff --git a/crates/optimism/rpc/src/eth/mod.rs b/crates/optimism/rpc/src/eth/mod.rs index 6b909f012c55..efa563880fdf 100644 --- a/crates/optimism/rpc/src/eth/mod.rs +++ b/crates/optimism/rpc/src/eth/mod.rs @@ -90,7 +90,7 @@ where ctx.network.clone(), ctx.cache.clone(), ctx.new_gas_price_oracle(), - ctx.config.rpc_gas_cap, + ctx.config.rpc_gas_cap.into(), ctx.config.rpc_max_simulate_blocks, ctx.config.eth_proof_window, blocking_task_pool, diff --git a/crates/rpc/rpc/src/eth/core.rs b/crates/rpc/rpc/src/eth/core.rs index b6b37c9f393e..e0f7a5593b40 100644 --- a/crates/rpc/rpc/src/eth/core.rs +++ b/crates/rpc/rpc/src/eth/core.rs @@ -62,7 +62,7 @@ where network: Network, eth_cache: EthStateCache, gas_oracle: GasPriceOracle, - gas_cap: impl Into, + gas_cap: GasCap, max_simulate_blocks: u64, eth_proof_window: u64, blocking_task_pool: BlockingTaskPool, @@ -119,7 +119,7 @@ where ctx.network.clone(), ctx.cache.clone(), ctx.new_gas_price_oracle(), - ctx.config.rpc_gas_cap, + ctx.config.rpc_gas_cap.into(), ctx.config.rpc_max_simulate_blocks, ctx.config.eth_proof_window, blocking_task_pool, @@ -270,7 +270,7 @@ where network: Network, eth_cache: EthStateCache, gas_oracle: GasPriceOracle, - gas_cap: impl Into, + gas_cap: GasCap, max_simulate_blocks: u64, eth_proof_window: u64, blocking_task_pool: BlockingTaskPool, @@ -297,7 +297,7 @@ where signers, eth_cache, gas_oracle, - gas_cap: gas_cap.into().into(), + gas_cap: gas_cap.into(), max_simulate_blocks, eth_proof_window, starting_block, diff --git a/crates/rpc/rpc/src/eth/helpers/transaction.rs b/crates/rpc/rpc/src/eth/helpers/transaction.rs index 8ac0785b2620..fc80f928657b 100644 --- a/crates/rpc/rpc/src/eth/helpers/transaction.rs +++ b/crates/rpc/rpc/src/eth/helpers/transaction.rs @@ -66,7 +66,7 @@ mod tests { noop_network_provider, cache.clone(), GasPriceOracle::new(noop_provider, Default::default(), cache.clone()), - ETHEREUM_BLOCK_GAS_LIMIT, + ETHEREUM_BLOCK_GAS_LIMIT.into(), DEFAULT_MAX_SIMULATE_BLOCKS, DEFAULT_ETH_PROOF_WINDOW, BlockingTaskPool::build().expect("failed to build tracing pool"),