Skip to content

Commit 958c96c

Browse files
committed
refactor: flip args
1 parent fb882d1 commit 958c96c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/OpenVmHalo2Verifier.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ abstract contract OpenVmHalo2Verifier {
4444
/// is being verified.
4545
/// @param leafExeCommit The commitment to the leaf verifier.
4646
function verifyProof(
47-
bytes calldata partialProof,
4847
bytes calldata guestPvs,
48+
bytes calldata partialProof,
4949
bytes32 appExeCommit,
5050
bytes32 leafExeCommit
5151
) external view {

test/OpenVmHalo2Verifier.t.sol

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ contract OpenVmHalo2VerifierTest is Test, OpenVmHalo2Verifier {
2626
}
2727

2828
function test_proofFormat() public view {
29-
this.verifyProof(partialProof, abi.encodePacked(guestPvsHash), appExeCommit, leafExeCommit);
29+
this.verifyProof(abi.encodePacked(guestPvsHash), partialProof, appExeCommit, leafExeCommit);
3030
}
3131

3232
function testFuzz_proofFormat(
@@ -55,7 +55,7 @@ contract OpenVmHalo2VerifierTest is Test, OpenVmHalo2Verifier {
5555

5656
function test_RevertWhen_InvalidPartialProofLength() public {
5757
vm.expectRevert(abi.encodeWithSelector(OpenVmHalo2Verifier.InvalidPartialProofLength.selector));
58-
this.verifyProof(hex"aa", abi.encodePacked(guestPvsHash), appExeCommit, leafExeCommit);
58+
this.verifyProof(abi.encodePacked(guestPvsHash), hex"aa", appExeCommit, leafExeCommit);
5959
}
6060

6161
function test_RevertWhen_InvalidGuestPvsLength() public {

0 commit comments

Comments
 (0)