diff --git a/crates/primitives/src/revm/env.rs b/crates/primitives/src/revm/env.rs index 047650a9ba42..5f2ba0f60739 100644 --- a/crates/primitives/src/revm/env.rs +++ b/crates/primitives/src/revm/env.rs @@ -313,7 +313,7 @@ pub fn fill_tx_env( TransactionKind::Call(to) => tx_env.transact_to = TransactTo::Call(to), TransactionKind::Create => tx_env.transact_to = TransactTo::create(), } - tx_env.value = tx.value.0; + tx_env.value = tx.value.into(); tx_env.data = tx.input.clone(); tx_env.chain_id = None; tx_env.nonce = None; diff --git a/crates/primitives/src/transaction/tx_value.rs b/crates/primitives/src/transaction/tx_value.rs index e7670f6021bc..e9a5f536e9ff 100644 --- a/crates/primitives/src/transaction/tx_value.rs +++ b/crates/primitives/src/transaction/tx_value.rs @@ -19,7 +19,7 @@ use proptest::{ /// this full precision, hence we use a wrapper type to allow for overriding of encoding. #[add_arbitrary_tests(compact, rlp)] #[derive(Default, Debug, Copy, Clone, Hash, PartialEq, Eq, Serialize, Deserialize)] -pub struct TxValue(pub U256); +pub struct TxValue(U256); impl From for U256 { /// unwrap Value to U256 diff --git a/crates/revm/src/optimism/processor.rs b/crates/revm/src/optimism/processor.rs index de0c41f5e474..cfdc0660d141 100644 --- a/crates/revm/src/optimism/processor.rs +++ b/crates/revm/src/optimism/processor.rs @@ -1,5 +1,3 @@ -use std::time::Instant; - use reth_interfaces::executor::{BlockExecutionError, BlockValidationError}; use reth_primitives::{ revm::compat::into_reth_log, revm_primitives::ResultAndState, Address, Block, Hardfork, @@ -7,6 +5,7 @@ use reth_primitives::{ }; use reth_provider::{BlockExecutor, BlockExecutorStats, BundleStateWithReceipts}; use revm::DatabaseCommit; +use std::time::Instant; use tracing::{debug, trace}; use crate::processor::{verify_receipt, EVMProcessor}; diff --git a/crates/transaction-pool/src/validate/eth.rs b/crates/transaction-pool/src/validate/eth.rs index b71bc84985d6..dcdd1b4ce715 100644 --- a/crates/transaction-pool/src/validate/eth.rs +++ b/crates/transaction-pool/src/validate/eth.rs @@ -818,7 +818,7 @@ mod tests { from: signer, to: TransactionKind::Create, mint: None, - value: reth_primitives::TxValue(U256::ZERO), + value: reth_primitives::TxValue::from(U256::ZERO), gas_limit: 0u64, is_system_transaction: false, input: Default::default(),