Skip to content

Commit

Permalink
Add evm simulator hash to dummy snapshot used for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
IAvecilla committed Aug 30, 2024
1 parent 808df90 commit 06b88c6
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
1 change: 1 addition & 0 deletions core/bin/genesis_generator/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ async fn generate_new_config(
genesis_commitment: None,
bootloader_hash: Some(base_system_contracts.bootloader),
default_aa_hash: Some(base_system_contracts.default_aa),
evm_simulator_hash: Some(base_system_contracts.evm_simulator),
..genesis_config
};

Expand Down
12 changes: 8 additions & 4 deletions core/node/test_utils/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -217,10 +217,14 @@ impl Snapshot {
Snapshot {
l1_batch,
l2_block,
factory_deps: [&contracts.bootloader, &contracts.default_aa]
.into_iter()
.map(|c| (c.hash, zksync_utils::be_words_to_bytes(&c.code)))
.collect(),
factory_deps: [
&contracts.bootloader,
&contracts.default_aa,
&contracts.evm_simulator,
]
.into_iter()
.map(|c| (c.hash, zksync_utils::be_words_to_bytes(&c.code)))
.collect(),
storage_logs,
}
}
Expand Down

0 comments on commit 06b88c6

Please sign in to comment.