diff --git a/crates/ef-testing/src/evm_sequencer/evm_state/mod.rs b/crates/ef-testing/src/evm_sequencer/evm_state/mod.rs index d2615426..9c6d055d 100644 --- a/crates/ef-testing/src/evm_sequencer/evm_state/mod.rs +++ b/crates/ef-testing/src/evm_sequencer/evm_state/mod.rs @@ -97,7 +97,7 @@ impl Evm for KakarotSequencer { self.state_mut().set_storage_at( kakarot_address, get_storage_var_address(KAKAROT_COINBASE, &[]), - coinbase_address.into(), + coinbase_address, )?; // Set the base fee. diff --git a/crates/ef-testing/src/models/case.rs b/crates/ef-testing/src/models/case.rs index 931106e1..6f0bda5d 100644 --- a/crates/ef-testing/src/models/case.rs +++ b/crates/ef-testing/src/models/case.rs @@ -70,9 +70,8 @@ impl BlockchainTestCase { sequencer: &mut KakarotSequencer, ) -> Result { // we extract the transactions from the block - let block = &self.block; - let block = - SealedBlock::decode(&mut block.rlp.as_ref()).map_err(RunnerError::RlpDecodeError)?; + let block = SealedBlock::decode(&mut self.block.rlp.as_ref()) + .map_err(RunnerError::RlpDecodeError)?; let mut output = EVMOutput::default(); @@ -145,7 +144,7 @@ impl BlockchainTestCase { let post_state = self.post.clone().expect("Post state not found"); let post_state = update_post_state(post_state, self.pre.clone()); - let mut errors: Vec = vec![]; + let mut errors = Vec::new(); let actual_gas_used = output.gas_used; let expected_gas_u64: u64 = expected_gas_used.try_into().unwrap(); @@ -176,8 +175,7 @@ impl BlockchainTestCase { } // Nonce - #[allow(unused_mut)] - let mut actual = sequencer.nonce_at(address)?; + let actual = sequencer.nonce_at(address)?; if actual != expected_state.nonce { let nonce_diff = format!( "nonce mismatch for {:#20x}: expected {:#32x}, got {:#32x}",