Skip to content

Commit

Permalink
Fix verifiers tests
Browse files Browse the repository at this point in the history
  • Loading branch information
JulianVentura committed Oct 8, 2024
1 parent 985c329 commit d0881ae
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions operator/risc_zero/risc_zero_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ func TestFibonacciRiscZeroProofVerifies(t *testing.T) {
if err != nil {
t.Errorf("could not open public input file: %s", err)
}

if !risc_zero.VerifyRiscZeroReceipt(innerReceiptBytes, imageIdBytes, publicInputBytes) {
verified, err := risc_zero.VerifyRiscZeroReceipt(innerReceiptBytes, imageIdBytes, publicInputBytes)
if err != nil || !verified {
t.Errorf("proof did not verify")
}
}
3 changes: 2 additions & 1 deletion operator/sp1/sp1_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ func TestFibonacciSp1ProofVerifies(t *testing.T) {
t.Errorf("could not open elf file: %s", err)
}

if !sp1.VerifySp1Proof(proofBytes, elfBytes) {
verified, err := sp1.VerifySp1Proof(proofBytes, elfBytes)
if err != nil || !verified {
t.Errorf("proof did not verify")
}
}

0 comments on commit d0881ae

Please sign in to comment.