Skip to content

Commit

Permalink
feat(revm): store access list storage keys sorted (#3386)
Browse files Browse the repository at this point in the history
  • Loading branch information
shekhirin authored Jun 26, 2023
1 parent 054f30f commit 49922bf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion crates/revm/revm-inspectors/src/access_list.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ use revm::{
interpreter::{opcode, InstructionResult, Interpreter},
Database, EVMData, Inspector,
};
use std::collections::BTreeSet;

/// An [Inspector] that collects touched accounts and storage slots.
///
Expand All @@ -13,7 +14,7 @@ pub struct AccessListInspector {
/// All addresses that should be excluded from the final accesslist
excluded: HashSet<Address>,
/// All addresses and touched slots
access_list: HashMap<Address, HashSet<H256>>,
access_list: HashMap<Address, BTreeSet<H256>>,
}

impl AccessListInspector {
Expand Down

0 comments on commit 49922bf

Please sign in to comment.