Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions evm/src/fuzz/strategies/state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,15 @@ pub fn build_initial_state<DB: DatabaseRef>(
// Insert basic account information
state.insert(H256::from(*address).into());

// Insert push bytes
if let Some(code) = &account.info.code {
if state.cache.insert(*address) {
for push_byte in collect_push_bytes(code.bytes().clone()) {
state.insert(push_byte);
}
}
}

if include_storage {
// Insert storage
for (slot, value) in &account.storage {
Expand Down