Skip to content

Commit c650bcb

Browse files
committed
chore: fmt
1 parent 37872ba commit c650bcb

File tree

1 file changed

+9
-12
lines changed

1 file changed

+9
-12
lines changed

src/evm.rs

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2348,22 +2348,18 @@ where
23482348

23492349
#[cfg(test)]
23502350
mod tests {
2351+
use super::*;
2352+
use crate::{
2353+
test_utils::{test_trevm_with_funds, ALICE, BOB, LOG_BYTECODE},
2354+
NoopBlock, NoopCfg, TrevmBuilder,
2355+
};
23512356
use alloy::{
2357+
consensus::constants::ETH_TO_WEI,
23522358
network::{TransactionBuilder, TransactionBuilder7702},
23532359
rpc::types::{Authorization, TransactionRequest},
23542360
signers::SignerSync,
2355-
consensus::constants::ETH_TO_WEI,
23562361
};
2357-
use revm::{
2358-
context::transaction::AuthorizationTr,
2359-
database::InMemoryDB,
2360-
primitives::bytes,
2361-
};
2362-
use crate::{
2363-
test_utils::{test_trevm_with_funds, ALICE, BOB, LOG_BYTECODE},
2364-
TrevmBuilder, NoopBlock, NoopCfg,
2365-
};
2366-
use super::*;
2362+
use revm::{context::transaction::AuthorizationTr, database::InMemoryDB, primitives::bytes};
23672363

23682364
#[test]
23692365
fn test_estimate_gas_simple_transfer() {
@@ -2391,7 +2387,7 @@ mod tests {
23912387
let db = InMemoryDB::default();
23922388
let log_address = Address::repeat_byte(0x32);
23932389

2394-
// Set up trevm, and test balances.
2390+
// Set up trevm, test balances, and set the log contract bytecode.
23952391
let mut trevm =
23962392
TrevmBuilder::new().with_db(db).with_spec_id(SpecId::PRAGUE).build_trevm().unwrap();
23972393
let _ = trevm.test_set_balance(ALICE.address(), U256::from(ETH_TO_WEI));
@@ -2425,6 +2421,7 @@ mod tests {
24252421

24262422
assert!(output.0.is_success());
24272423
assert_eq!(output.0.logs().len(), 1);
2424+
assert_eq!(output.0.logs()[0].address, BOB.address());
24282425
}
24292426
}
24302427

0 commit comments

Comments
 (0)