Skip to content

Commit

Permalink
Change low level call to zkvm
Browse files Browse the repository at this point in the history
  • Loading branch information
Jrigada committed Sep 3, 2024
1 parent c4548e0 commit 100dc57
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions crates/forge/tests/fixtures/zk/Deploy.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,13 @@ import {Script} from "forge-std/Script.sol";
import {Greeter} from "../src/Greeter.sol";

contract DeployScript is Script {
// Vm constant vm = Vm(HEVM_ADDRESS);
Vm constant vm = Vm(HEVM_ADDRESS);

Greeter greeter;
string greeting;

function run() external {
// test is using old Vm.sol interface, so we call manually
(bool success,) = address(vm).call(abi.encodeWithSignature("zkVm(bool)", true));
require(success, "zkVm() call failed");
vm.zkVm(true);
vm.startBroadcast();

greeter = new Greeter();
Expand Down

0 comments on commit 100dc57

Please sign in to comment.