Skip to content

Commit

Permalink
Fix for add-check
Browse files Browse the repository at this point in the history
  • Loading branch information
kcalvinalvin committed Aug 27, 2024
1 parent dbcc24a commit cdec4ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pytreexo.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ def right_sibling(position: int) -> int:

def calculate_roots(numleaves: int, dels: [bytes], proof: Proof) -> [bytes]:
if not proof.targets: return []
if len(proof.targets) != len(dels): raise("len of dels and proof.targets differ")
if dels is not None and len(proof.targets) != len(dels): raise("len of dels and proof.targets differ")

position_hashes = {}
for i, target in enumerate(proof.targets):
Expand Down

0 comments on commit cdec4ed

Please sign in to comment.