Skip to content

Commit

Permalink
use strictly less than
Browse files Browse the repository at this point in the history
  • Loading branch information
martyall committed Oct 7, 2023
1 parent c3a6484 commit 99cd398
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/Network/Ethereum/Web3/Contract/Events.purs
Original file line number Diff line number Diff line change
Expand Up @@ -192,8 +192,7 @@ filterProducer cs@(MultiFilterStreamState currentState) = do
modify :: forall (k :: Type) (e :: k). Filter e -> Filter e
modify fltr =
fltr # _fromBlock .~ BN currentState.currentBlock
# _toBlock
.~ BN endBlock
# _toBlock .~ BN endBlock

fs' = hmap (ModifyFilter modify) currentState.filters
yieldT fs'
Expand All @@ -213,7 +212,7 @@ filterProducer cs@(MultiFilterStreamState currentState) = do
let
targetEnd' = min targetEnd $ over BlockNumber (_ - fromInt currentState.trailBy) chainHead
in
if currentState.currentBlock <= targetEnd' then
if currentState.currentBlock < targetEnd' then
continueTo targetEnd'
else
pure cs
Expand Down

0 comments on commit 99cd398

Please sign in to comment.