Skip to content

Commit d0881ae

Browse files
author
Julian Ventura
committed
Fix verifiers tests
1 parent 985c329 commit d0881ae

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

operator/risc_zero/risc_zero_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ func TestFibonacciRiscZeroProofVerifies(t *testing.T) {
2222
if err != nil {
2323
t.Errorf("could not open public input file: %s", err)
2424
}
25-
26-
if !risc_zero.VerifyRiscZeroReceipt(innerReceiptBytes, imageIdBytes, publicInputBytes) {
25+
verified, err := risc_zero.VerifyRiscZeroReceipt(innerReceiptBytes, imageIdBytes, publicInputBytes)
26+
if err != nil || !verified {
2727
t.Errorf("proof did not verify")
2828
}
2929
}

operator/sp1/sp1_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ func TestFibonacciSp1ProofVerifies(t *testing.T) {
2222
t.Errorf("could not open elf file: %s", err)
2323
}
2424

25-
if !sp1.VerifySp1Proof(proofBytes, elfBytes) {
25+
verified, err := sp1.VerifySp1Proof(proofBytes, elfBytes)
26+
if err != nil || !verified {
2627
t.Errorf("proof did not verify")
2728
}
2829
}

0 commit comments

Comments
 (0)