Skip to content

Commit

Permalink
fix mock prove
Browse files Browse the repository at this point in the history
  • Loading branch information
nategraf committed Jan 10, 2025
1 parent f634403 commit 8af3229
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion contracts/test/RiscZeroSetVerifier.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,9 @@ contract RiscZeroSetVerifierTest is Test {
RiscZeroSetVerifier public setVerifier;

function mockProveRoot(bytes32 root) internal view returns (RiscZeroReceipt memory) {
return verifier.mockProve(SET_BUILDER_IMAGE_ID, sha256(abi.encodePacked(SET_BUILDER_IMAGE_ID, root)));
return verifier.mockProve(
SET_BUILDER_IMAGE_ID, sha256(abi.encodePacked(SET_BUILDER_IMAGE_ID, uint256(1) << 255, root))
);
}

function submitRoot(bytes32 root) internal {
Expand Down

0 comments on commit 8af3229

Please sign in to comment.