Skip to content

Commit

Permalink
Add iteration and shouldContinu from yield & tests
Browse files Browse the repository at this point in the history
  • Loading branch information
pnowosie committed Aug 1, 2024
1 parent 26786c0 commit f6e7266
Show file tree
Hide file tree
Showing 3 changed files with 354 additions and 150 deletions.
1 change: 1 addition & 0 deletions core/trie/trie.go
Original file line number Diff line number Diff line change
Expand Up @@ -752,6 +752,7 @@ func (t *Trie) Iterate(startValue *felt.Felt, consumer func(key, value *felt.Fel

func (t *Trie) doIterate(startKey, key *Key, consumer func(key, value *felt.Felt) (bool, error)) (bool, error) {
if key == nil {
// shouldn't it be finished == true here?
return false, nil
}

Expand Down
Loading

0 comments on commit f6e7266

Please sign in to comment.