Skip to content

Commit

Permalink
fix tests, startup bug
Browse files Browse the repository at this point in the history
  • Loading branch information
nbaztec committed Dec 15, 2024
1 parent 6c00749 commit b5fd952
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions crates/cli/src/utils/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,10 @@ pub fn get_provider(config: &Config) -> Result<RetryProvider> {

pub fn get_executor_strategy(config: &Config) -> Arc<Mutex<dyn ExecutorStrategyExt>> {
if config.zksync.should_compile() {
info!("using zksync strategy");
Arc::new(Mutex::new(ZksyncExecutorStrategy::default()))
} else {
info!("using evm strategy");
Arc::new(Mutex::new(EvmExecutorStrategy::default()))
}
}
Expand Down
4 changes: 2 additions & 2 deletions crates/config/src/zksync.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@ pub struct ZkSyncConfig {
impl Default for ZkSyncConfig {
fn default() -> Self {
Self {
compile: true,
startup: true,
compile: false,
startup: false,
zksolc: Default::default(),
solc_path: Default::default(),
bytecode_hash: Default::default(),
Expand Down
2 changes: 1 addition & 1 deletion crates/strategy/zksync/src/cheatcode.rs
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ impl ZksyncCheatcodeInspectorStrategy {

Self {
evm: EvmCheatcodeInspectorStrategy::default(),
using_zk_vm: true, // always start in zksync mode
using_zk_vm: false, // We need to migrate once on initialize_interp
skip_zk_vm: false,
skip_zk_vm_addresses: Default::default(),
record_next_create_address: Default::default(),
Expand Down

0 comments on commit b5fd952

Please sign in to comment.