Skip to content

Commit

Permalink
Update core/trie/proof.go
Browse files Browse the repository at this point in the history
Co-authored-by: Pawel Nowosielski <[email protected]>
Signed-off-by: Ng Wei Han <[email protected]>
  • Loading branch information
weiihann and pnowosie authored Dec 5, 2024
1 parent 7aa6525 commit 259701d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/trie/proof.go
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ func VerifyRangeProof(root, first *felt.Felt, keys, values []*felt.Felt, proof *
}

if values[i] == nil || values[i].Equal(&felt.Zero) {
return false, errors.New("range contains deletion")
return false, errors.New("range contains empty leaf")
}
}

Expand Down

0 comments on commit 259701d

Please sign in to comment.