Skip to content

Commit

Permalink
Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
yaziciahmet committed Dec 20, 2024
1 parent 31303bd commit 1792171
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 6 deletions.
9 changes: 6 additions & 3 deletions crates/evm/src/tests/call_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,10 @@ use crate::smart_contracts::{
};
use crate::tests::test_signer::TestSigner;
use crate::tests::utils::{
config_push_contracts, create_contract_message, create_contract_message_with_fee, create_contract_message_with_fee_and_gas_limit, create_contract_transaction, get_evm, get_evm_config, get_evm_config_starting_base_fee, get_evm_with_spec, publish_event_message, set_arg_message
config_push_contracts, create_contract_message, create_contract_message_with_fee,
create_contract_message_with_fee_and_gas_limit, create_contract_transaction, get_evm,
get_evm_config, get_evm_config_starting_base_fee, get_evm_with_spec, publish_event_message,
set_arg_message,
};
use crate::tests::DEFAULT_CHAIN_ID;
use crate::{
Expand Down Expand Up @@ -1246,7 +1249,7 @@ fn test_l1_fee_success() {
},
gas_used: 50751,
log_index_start: 0,
l1_diff_size: 53,
l1_diff_size: 53,
},
Receipt {
receipt: reth_primitives::Receipt {
Expand Down Expand Up @@ -1319,7 +1322,7 @@ fn test_l1_fee_success() {
},
gas_used: 114235,
log_index_start: 1,
l1_diff_size: 52
l1_diff_size: 52,
}
]
)
Expand Down
4 changes: 3 additions & 1 deletion crates/evm/src/tests/fork_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@ use crate::smart_contracts::{
SelfdestructingConstructorContract, SimpleStorageContract, TransientStorageContract,
};
use crate::tests::test_signer::TestSigner;
use crate::tests::utils::{create_contract_message, get_evm, get_evm_config, get_evm_with_spec, set_arg_message};
use crate::tests::utils::{
create_contract_message, get_evm, get_evm_config, get_evm_with_spec, set_arg_message,
};
use crate::RlpEvmTransaction;
type C = DefaultContext;

Expand Down
2 changes: 1 addition & 1 deletion crates/evm/src/tests/hooks_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ fn end_soft_confirmation_hook_sets_head() {
.get(&mut working_set.accessory_state())
.unwrap();

assert_eq!(head, pending_head.into());
assert_eq!(head, pending_head);
assert_eq!(
head,
Block {
Expand Down
5 changes: 4 additions & 1 deletion crates/evm/src/tests/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,10 @@ pub(crate) fn get_evm(config: &EvmConfig) -> (Evm<C>, WorkingSet<<C as Spec>::St
get_evm_with_spec(config, SovSpecId::Fork1)
}

pub(crate) fn get_evm_with_spec(config: &EvmConfig, spec_id: SovSpecId) -> (Evm<C>, WorkingSet<<C as Spec>::Storage>) {
pub(crate) fn get_evm_with_spec(
config: &EvmConfig,
spec_id: SovSpecId,
) -> (Evm<C>, WorkingSet<<C as Spec>::Storage>) {
let tmpdir = tempfile::tempdir().unwrap();
let storage = new_orphan_storage(tmpdir.path()).unwrap();
let mut working_set = WorkingSet::new(storage.clone());
Expand Down

0 comments on commit 1792171

Please sign in to comment.