Skip to content

Commit 12d2de9

Browse files
committed
chore: use from_word on both palces
1 parent 0d980e7 commit 12d2de9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/evm/src/executor/inspector/access_list.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ impl<DB: Database> Inspector<DB> for AccessListTracer {
7676
}
7777
opcode::DELEGATECALL | opcode::CALL | opcode::STATICCALL | opcode::CALLCODE => {
7878
if let Ok(slot) = interpreter.stack().peek(1) {
79-
let addr: Address = Address::from_slice(&slot.to_be_bytes::<32>()[12..]);
79+
let addr: Address = Address::from_word(slot.into());
8080
if !self.excluded.contains(&addr) {
8181
self.access_list.entry(addr).or_default();
8282
}

0 commit comments

Comments
 (0)