Skip to content

Commit dda2e12

Browse files
authored
Merge pull request #16 from kcalvinalvin/2024-08-26-add-check-fix
Fix for add-check
2 parents dbcc24a + cdec4ed commit dda2e12

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pytreexo.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ def right_sibling(position: int) -> int:
135135

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

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

0 commit comments

Comments
 (0)