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 d28c501 commit 7aa6525
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 @@ -201,7 +201,7 @@ func VerifyProof(root, keyFelt *felt.Felt, proof *ProofNodeSet, hash hashFunc) (
func VerifyRangeProof(root, first *felt.Felt, keys, values []*felt.Felt, proof *ProofNodeSet) (bool, error) { //nolint:funlen,gocyclo
// Ensure the number of keys and values are the same
if len(keys) != len(values) {
return false, fmt.Errorf("inconsistent proof data, keys: %d, values: %d", len(keys), len(values))
return false, fmt.Errorf("inconsistent length of proof data, keys: %d, values: %d", len(keys), len(values))
}

// Ensure all keys are monotonically increasing and values contain no deletions
Expand Down

0 comments on commit 7aa6525

Please sign in to comment.