Skip to content

Commit

Permalink
chore: drop to_be_bytes
Browse files Browse the repository at this point in the history
  • Loading branch information
Evalir committed Sep 15, 2023
1 parent a1fe075 commit 10899ee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/evm/src/executor/inspector/access_list.rs
@@ -1,4 +1,4 @@
use alloy_primitives::FixedBytes;

use ethers::types::transaction::eip2930::{AccessList, AccessListItem};
use hashbrown::{HashMap, HashSet};
use revm::{
Expand Down Expand Up @@ -69,7 +69,7 @@ impl<DB: Database> Inspector<DB> for AccessListTracer {
opcode::BALANCE |
opcode::SELFDESTRUCT => {
if let Ok(slot) = interpreter.stack().peek(0) {
let addr: Address = Address::from_word(slot.to_be_bytes::<32>().into());
let addr: Address = Address::from_word(slot.into());
if !self.excluded.contains(&addr) {
self.access_list.entry(addr).or_default();
}
Expand Down

0 comments on commit 10899ee

Please sign in to comment.