Skip to content

Commit

Permalink
Fix witness generator
Browse files Browse the repository at this point in the history
  • Loading branch information
slowli committed Sep 27, 2024
1 parent 1828756 commit 41fa851
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -114,14 +114,18 @@ pub(super) async fn generate_witness(
}
};

let evm_simulator_code_hash = input.vm_run_data.evm_simulator_code_hash;
// By convention, default AA is used instead of the EVM simulator if the latter is disabled.
let evm_simulator_code_hash =
evm_simulator_code_hash.unwrap_or(input.vm_run_data.default_account_code_hash);
let (scheduler_witness, block_witness) = zkevm_test_harness::external_calls::run(
Address::zero(),
BOOTLOADER_ADDRESS,
input.vm_run_data.bootloader_code,
bootloader_contents,
false,
input.vm_run_data.default_account_code_hash,
input.vm_run_data.evm_simulator_code_hash,
evm_simulator_code_hash,
input.vm_run_data.used_bytecodes,
Vec::default(),
MAX_CYCLES_FOR_TX as usize,
Expand Down

0 comments on commit 41fa851

Please sign in to comment.