From 8af32296e69266d5ecbdfa2db03bc2d65048d767 Mon Sep 17 00:00:00 2001 From: Victor Graf Date: Fri, 10 Jan 2025 14:12:50 -0800 Subject: [PATCH] fix mock prove --- contracts/test/RiscZeroSetVerifier.t.sol | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/contracts/test/RiscZeroSetVerifier.t.sol b/contracts/test/RiscZeroSetVerifier.t.sol index 0a4bca17..7d30e710 100644 --- a/contracts/test/RiscZeroSetVerifier.t.sol +++ b/contracts/test/RiscZeroSetVerifier.t.sol @@ -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 {