diff --git a/src/access_list.rs b/src/access_list.rs index e99ec29..73a3367 100644 --- a/src/access_list.rs +++ b/src/access_list.rs @@ -2,7 +2,7 @@ use alloy_primitives::{Address, B256}; use alloy_rpc_types_eth::{AccessList, AccessListItem}; use revm::{ bytecode::opcode, - context_interface::Journal, + context_interface::{Journal, JournalGetter}, interpreter::{ interpreter::EthInterpreter, interpreter_types::{InputsTrait, Jumps}, @@ -65,17 +65,11 @@ impl AccessListInspector { } } -impl - Inspector, EthInterpreter> for AccessListInspector +impl Inspector for AccessListInspector where - DB: Database, - JOURNAL: Journal, + CTX: JournalGetter, { - fn step( - &mut self, - interp: &mut Interpreter, - _context: &mut Context, - ) { + fn step(&mut self, interp: &mut Interpreter, _context: &mut CTX) { match interp.bytecode.opcode() { opcode::SLOAD | opcode::SSTORE => { if let Ok(slot) = interp.stack.peek(0) {