Skip to content

Commit

Permalink
and with access list
Browse files Browse the repository at this point in the history
  • Loading branch information
rakita committed Dec 23, 2024
1 parent a2b2a93 commit fb1872f
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions src/access_list.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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},
Expand Down Expand Up @@ -65,17 +65,11 @@ impl AccessListInspector {
}
}

impl<DB, BLOCK, TX, CFG, JOURNAL, CHAIN>
Inspector<Context<BLOCK, TX, CFG, DB, JOURNAL, CHAIN>, EthInterpreter> for AccessListInspector
impl<CTX> Inspector<CTX, EthInterpreter> for AccessListInspector
where
DB: Database,
JOURNAL: Journal<Database = DB>,
CTX: JournalGetter,
{
fn step(
&mut self,
interp: &mut Interpreter<EthInterpreter>,
_context: &mut Context<BLOCK, TX, CFG, DB, JOURNAL, CHAIN>,
) {
fn step(&mut self, interp: &mut Interpreter<EthInterpreter>, _context: &mut CTX) {
match interp.bytecode.opcode() {
opcode::SLOAD | opcode::SSTORE => {
if let Ok(slot) = interp.stack.peek(0) {
Expand Down

0 comments on commit fb1872f

Please sign in to comment.