diff --git a/crates/anvil/src/eth/api.rs b/crates/anvil/src/eth/api.rs index 23aac7452913..2efef464a4ee 100644 --- a/crates/anvil/src/eth/api.rs +++ b/crates/anvil/src/eth/api.rs @@ -1902,10 +1902,10 @@ impl EthApi { TransactionOrder::Fees => "fees".to_string(), }, environment: NodeEnvironment { - base_fee: U256::from(self.backend.base_fee()), + base_fee: self.backend.base_fee().to::(), chain_id: self.backend.chain_id().to::(), - gas_limit: U256::from(self.backend.gas_limit()), - gas_price: U256::from(self.gas_price()), + gas_limit: self.backend.gas_limit().to::(), + gas_price: self.gas_price(), }, fork_config: fork_config .map(|fork| { diff --git a/crates/anvil/tests/it/anvil_api.rs b/crates/anvil/tests/it/anvil_api.rs index 9eb44c69b529..495229fdfda6 100644 --- a/crates/anvil/tests/it/anvil_api.rs +++ b/crates/anvil/tests/it/anvil_api.rs @@ -460,10 +460,10 @@ async fn can_get_node_info() { hard_fork: hard_fork.to_string(), transaction_order: "fees".to_owned(), environment: NodeEnvironment { - base_fee: U256::from_str("0x3b9aca00").unwrap().to(), + base_fee: u128::from_str("0x3b9aca00").unwrap(), chain_id: 0x7a69, - gas_limit: U256::from_str("0x1c9c380").unwrap().to(), - gas_price: U256::from_str("0x77359400").unwrap().to(), + gas_limit: u64::from_str("0x1c9c380").unwrap(), + gas_price: u128::from_str("0x77359400").unwrap(), }, fork_config: NodeForkConfig { fork_url: None,