diff --git a/crates/ethereum/evm/src/execute.rs b/crates/ethereum/evm/src/execute.rs index 35e97bbaa..fdbc9eefd 100644 --- a/crates/ethereum/evm/src/execute.rs +++ b/crates/ethereum/evm/src/execute.rs @@ -160,7 +160,7 @@ where &mut self, block: &BlockWithSenders, total_difficulty: U256, - ) -> Result { + ) -> Result, Self::Error> { let env = self.evm_env_for_block(&block.header, total_difficulty); let mut evm = self.evm_config.evm_with_env(&mut self.state, env); diff --git a/crates/evm/src/execute.rs b/crates/evm/src/execute.rs index bc6e535b7..7d477d219 100644 --- a/crates/evm/src/execute.rs +++ b/crates/evm/src/execute.rs @@ -599,14 +599,14 @@ mod tests { _chain_spec: Arc, _evm_config: EvmConfig, state: State, - execute_transactions_result: ExecuteOutput, + execute_transactions_result: ExecuteOutput, apply_post_execution_changes_result: Requests, finish_result: BundleState, } #[derive(Clone)] struct TestExecutorStrategyFactory { - execute_transactions_result: ExecuteOutput, + execute_transactions_result: ExecuteOutput, apply_post_execution_changes_result: Requests, finish_result: BundleState, } @@ -659,7 +659,7 @@ mod tests { &mut self, _block: &BlockWithSenders, _total_difficulty: U256, - ) -> Result { + ) -> Result, Self::Error> { Ok(self.execute_transactions_result.clone()) } @@ -711,8 +711,10 @@ mod tests { fn test_strategy() { let expected_gas_used = 10; let expected_receipts = vec![Receipt::default()]; - let expected_execute_transactions_result = - ExecuteOutput { receipts: expected_receipts.clone(), gas_used: expected_gas_used }; + let expected_execute_transactions_result = ExecuteOutput:: { + receipts: expected_receipts.clone(), + gas_used: expected_gas_used, + }; let expected_apply_post_execution_changes_result = Requests::new(vec![bytes!("deadbeef")]); let expected_finish_result = BundleState::default(); diff --git a/crates/optimism/evm/src/execute.rs b/crates/optimism/evm/src/execute.rs index 7ab9be728..a333978f0 100644 --- a/crates/optimism/evm/src/execute.rs +++ b/crates/optimism/evm/src/execute.rs @@ -158,7 +158,7 @@ where &mut self, block: &BlockWithSenders, total_difficulty: U256, - ) -> Result { + ) -> Result, Self::Error> { let env = self.evm_env_for_block(&block.header, total_difficulty); let mut evm = self.evm_config.evm_with_env(&mut self.state, env); diff --git a/examples/custom-beacon-withdrawals/src/main.rs b/examples/custom-beacon-withdrawals/src/main.rs index 3d756ae92..26109db1e 100644 --- a/examples/custom-beacon-withdrawals/src/main.rs +++ b/examples/custom-beacon-withdrawals/src/main.rs @@ -161,7 +161,7 @@ where &mut self, _block: &BlockWithSenders, _total_difficulty: U256, - ) -> Result { + ) -> Result, Self::Error> { Ok(ExecuteOutput { receipts: vec![], gas_used: 0 }) }