another err > error

This commit is contained in:
Eric 2024-10-31 12:02:55 +11:00
parent 8aaff32b46
commit 1801120412
No known key found for this signature in database
1 changed files with 2 additions and 2 deletions

View File

@ -65,8 +65,8 @@ proc digest*(
## Hashes chunks of data with a sponge of rate 2, and combines the ## Hashes chunks of data with a sponge of rate 2, and combines the
## resulting chunk hashes in a merkle root. ## resulting chunk hashes in a merkle root.
## ##
without tree =? (await Poseidon2Tree.digestTree(bytes, chunkSize)), err: without tree =? (await Poseidon2Tree.digestTree(bytes, chunkSize)), error:
return failure err return failure error
tree.root tree.root