Skip to content

Commit

Permalink
Fix go binding test
Browse files Browse the repository at this point in the history
  • Loading branch information
xqft committed Aug 22, 2024
1 parent 141356b commit 1e6a457
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1�A��F�̰.��~)�s-K��.��s�/�nV�6�z[2�5��)l�˄nP���-:]��r4�b'
�����F6:|��+���!�y��(�޻[�!nV�6�z[2�5��)l�˄nP���-:]��r4�b'I������uǬ9#.h��x3b@��lv�矖@�
6 changes: 3 additions & 3 deletions operator/mina_account/mina_account_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ func TestMinaStateProofVerifies(t *testing.T) {
t.Errorf("could not open mina account proof file")
}

proofBuffer := make([]byte, mina.MAX_PROOF_SIZE)
proofBuffer := make([]byte, mina_account.MAX_PROOF_SIZE)
proofLen, err := proofFile.Read(proofBuffer)
if err != nil {
t.Errorf("could not read bytes from mina account proof file")
Expand All @@ -25,13 +25,13 @@ func TestMinaStateProofVerifies(t *testing.T) {
if err != nil {
t.Errorf("could not open mina account pub inputs file")
}
pubInputBuffer := make([]byte, mina.MAX_PUB_INPUT_SIZE)
pubInputBuffer := make([]byte, mina_account.MAX_PUB_INPUT_SIZE)
pubInputLen, err := pubInputFile.Read(pubInputBuffer)
if err != nil {
t.Errorf("could not read bytes from mina account pub inputs hash")
}

if !mina_account.VerifyAccountInclusion(([mina.MAX_PROOF_SIZE]byte)(proofBuffer), uint(proofLen), ([mina.MAX_PUB_INPUT_SIZE]byte)(pubInputBuffer), uint(pubInputLen)) {
if !mina_account.VerifyAccountInclusion(([mina_account.MAX_PROOF_SIZE]byte)(proofBuffer), uint(proofLen), ([mina_account.MAX_PUB_INPUT_SIZE]byte)(pubInputBuffer), uint(pubInputLen)) {
t.Errorf("proof did not verify")
}
}

0 comments on commit 1e6a457

Please sign in to comment.