Skip to content

Commit

Permalink
qwe
Browse files Browse the repository at this point in the history
  • Loading branch information
rian committed Jun 7, 2024
1 parent b0c8e0a commit eb092d4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/trie/proof.go
Original file line number Diff line number Diff line change
Expand Up @@ -267,8 +267,8 @@ func ensureMonotonicIncreasing(proofKeys [2]*felt.Felt, keys []*felt.Felt) error
if proofKeys[1] != nil && keys[len(keys)-1].Cmp(proofKeys[1]) >= 0 {
return errors.New("range is not monotonically increasing")

Check warning on line 268 in core/trie/proof.go

View check run for this annotation

Codecov / codecov/patch

core/trie/proof.go#L268

Added line #L268 was not covered by tests
}
if len(keys) > 2 {
for i := 1; i < len(keys); i++ {
if len(keys) >= 2 {
for i := 0; i < len(keys)-1; i++ {
if keys[i].Cmp(keys[i+1]) >= 0 {
return errors.New("range is not monotonically increasing")

Check warning on line 273 in core/trie/proof.go

View check run for this annotation

Codecov / codecov/patch

core/trie/proof.go#L273

Added line #L273 was not covered by tests
}
Expand Down

0 comments on commit eb092d4

Please sign in to comment.