Skip to content

Commit

Permalink
Make Control ID Parameterized (#56)
Browse files Browse the repository at this point in the history
* update risc0 commit

* specify control_id params as arguments
  • Loading branch information
jjtny1 authored Sep 14, 2023
1 parent c1a4537 commit c7f2409
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/risc0
Submodule risc0 updated 167 files
4 changes: 2 additions & 2 deletions script/BonsaiDeploy.sol
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import {IBonsaiRelay} from "bonsai/IBonsaiRelay.sol";
import {BonsaiRelay} from "bonsai/BonsaiRelay.sol";
import {BonsaiCheats} from "bonsai/BonsaiCheats.sol";
import {BonsaiTestRelay} from "bonsai/BonsaiTestRelay.sol";
import {RiscZeroGroth16Verifier} from "bonsai/groth16/RiscZeroGroth16Verifier.sol";
import {ControlID, RiscZeroGroth16Verifier} from "bonsai/groth16/RiscZeroGroth16Verifier.sol";
import {IRiscZeroVerifier} from "bonsai/IRiscZeroVerifier.sol";

/// @notice Base deployment script for Bonsai projects with Foundry and it's dependencies.
Expand Down Expand Up @@ -80,7 +80,7 @@ contract BonsaiDeploy is Script, BonsaiCheats {
console2.log("Using IRiscZeroVerifier at ", address(verifierAddr));
verifier = IRiscZeroVerifier(verifierAddr);
} else {
verifier = new RiscZeroGroth16Verifier();
verifier = new RiscZeroGroth16Verifier(ControlID.CONTROL_ID_0, ControlID.CONTROL_ID_1);
console2.log("Deployed RiscZeroGroth16Verifier to ", address(verifier));
}

Expand Down

0 comments on commit c7f2409

Please sign in to comment.