Skip to content

Commit 686c22d

Browse files
committed
fix error messages
1 parent 8831963 commit 686c22d

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

proof/proof.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ func SubtreeInclusion(index, start, end uint64) (Nodes, error) {
6666
return Nodes{}, fmt.Errorf("index %d out of bounds for subtree [%d, %d)", index, start, end)
6767
}
6868
if !isSubtreeValid(start, end) {
69-
return Nodes{}, fmt.Errorf("start %d not a multiple of bit_ceil(end - start) = %d", start, end-start)
69+
return Nodes{}, fmt.Errorf("start %d not a multiple of bit_ceil(end - start)", start)
7070
}
7171

7272
// Shift the subtree to the left, such that it starts at 0.

proof/verify.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ func VerifySubtreeInclusion(hasher merkle.LogHasher, index, start, end uint64, l
6666
return fmt.Errorf("index %d out of bounds for subtree [%d, %d)", index, start, end)
6767
}
6868
if !isSubtreeValid(start, end) {
69-
return fmt.Errorf("start %d not a multiple of bit_ceil(end - start) = %d", start, end-start)
69+
return fmt.Errorf("start %d not a multiple of bit_ceil(end - start)", start)
7070

7171
}
7272
calcRoot, err := RootFromInclusionProof(hasher, index-start, end-start, leafHash, proof)

0 commit comments

Comments
 (0)