Skip to content

Commit

Permalink
fix(taiko-client): check inner iterator errors in `BlockProposedItera…
Browse files Browse the repository at this point in the history
…tor`
  • Loading branch information
davidtaikocha committed Jan 13, 2025
1 parent a58852f commit 7aa620d
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,14 @@ func assembleBlockProposedIteratorCallback(
updateCurrentFunc(current)
}

// Check iterator errors.
if iter.Error() != nil {
return iter.Error()
}
if iterOntake.Error() != nil {
return iter.Error()
}

return nil
}
}

0 comments on commit 7aa620d

Please sign in to comment.