Merge 9563179bf29477c01adbe6a98c35f0df560e8afa into 4b82d7f82d9bb92d96fdf0c9331061875faab2c0

This commit is contained in:
Giuliano Mega 2026-04-30 19:59:57 -03:00 committed by GitHub
commit b20cff3a2d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -65,7 +65,7 @@ func verify*(self: StorageMerkleProof, leaf: MultiHash, root: MultiHash): ?!bool
if self.mcodec != root.mcodec or self.mcodec != leaf.mcodec:
return failure "Hash codec mismatch"
if rootBytes.len != root.size and leafBytes.len != leaf.size:
if rootBytes.len != root.size or leafBytes.len != leaf.size:
return failure "Invalid hash length"
self.verify(leafBytes, rootBytes)