Skip to content

Commit

Permalink
add zkVmSkip cheatcode
Browse files Browse the repository at this point in the history
  • Loading branch information
nbaztec committed Sep 11, 2024
1 parent 2de073a commit 8f11e06
Show file tree
Hide file tree
Showing 7 changed files with 418 additions and 530 deletions.
82 changes: 51 additions & 31 deletions crates/cheatcodes/assets/cheatcodes.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions crates/cheatcodes/spec/src/vm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -694,6 +694,10 @@ interface Vm {
#[cheatcode(group = Testing, safety = Safe)]
function zkVm(bool enable) external pure;

/// When running in zkEVM context, skips the next CREATE or CALL, executing it on the EVM instead.
#[cheatcode(group = Testing, safety = Safe)]
function zkVmSkip() external pure;

/// Registers bytecodes for ZK-VM for transact/call and create instructions.
#[cheatcode(group = Testing, safety = Safe)]
function zkRegisterContract(string calldata name, bytes32 evmBytecodeHash, bytes calldata evmDeployedBytecode, bytes calldata evmBytecode, bytes32 zkBytecodeHash, bytes calldata zkDeployedBytecode) external pure;
Expand Down
Loading

0 comments on commit 8f11e06

Please sign in to comment.