diff --git a/crates/vm/levm/src/vm.rs b/crates/vm/levm/src/vm.rs index 48cc327ff..08e5bb7a9 100644 --- a/crates/vm/levm/src/vm.rs +++ b/crates/vm/levm/src/vm.rs @@ -138,6 +138,7 @@ impl VM { let mut default_touched_storage_slots: HashMap> = HashMap::new(); + // Add access lists contents to cache for (address, keys) in access_list.clone() { default_touched_accounts.insert(address); let mut warm_slots = HashSet::new(); @@ -147,6 +148,12 @@ impl VM { default_touched_storage_slots.insert(address, warm_slots); } + // Add precompiled contracts addresses to cache. + // TODO: Use the addresses from precompiles.rs in a future + for i in 1..10 { + default_touched_accounts.insert(Address::from_low_u64_be(i)); + } + match to { TxKind::Call(address_to) => { default_touched_accounts.insert(address_to);