Skip to content

Commit

Permalink
enable no_zksync_reserved_addresses
Browse files Browse the repository at this point in the history
  • Loading branch information
nbaztec committed Jul 30, 2024
1 parent 283122d commit d70695e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions crates/forge/tests/it/test_helpers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,7 @@ impl ForgeTestProfile {
zk_config.zksync.fallback_oz = true;
zk_config.zksync.optimizer_mode = '3';
zk_config.zksync.zksolc = Some(foundry_config::SolcReq::Version(Version::new(1, 5, 1)));
zk_config.fuzz.no_zksync_reserved_addresses = true;

zk_config
}
Expand Down Expand Up @@ -352,15 +353,16 @@ impl ForgeTestData {
let output = self.zk_test_data.output.clone();
let zk_output = self.zk_test_data.zk_output.clone();
let dual_compiled_contracts = self.zk_test_data.dual_compiled_contracts.clone();

let mut test_opts = self.test_opts.clone();
test_opts.fuzz.no_zksync_reserved_addresses = zk_config.fuzz.no_zksync_reserved_addresses;
let sender = zk_config.sender;

let mut builder = self.base_runner();
builder.config = Arc::new(zk_config);
builder
.enable_isolation(opts.isolate)
.sender(sender)
.with_test_options(self.test_opts.clone())
.with_test_options(test_opts)
.build(root, output, Some(zk_output), env, opts.clone(), dual_compiled_contracts)
.unwrap()
}
Expand Down

0 comments on commit d70695e

Please sign in to comment.