Skip to content

Commit

Permalink
Update types/mempool/sender_nonce.go
Browse files Browse the repository at this point in the history
Co-authored-by: Facundo Medica <14063057+facundomedica@users.noreply.github.com>
  • Loading branch information
JeancarloBarrios and facundomedica committed Nov 22, 2022
1 parent d056a8a commit 9073aaf
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions types/mempool/sender_nonce.go
Original file line number Diff line number Diff line change
Expand Up @@ -112,11 +112,7 @@ func (snm *senderNonceMempool) Select(_ sdk.Context, _ [][]byte) Iterator {
senderCursors: senderCursors,
}

newIter := iter.Next()
if newIter == nil {
return nil
}
return newIter
return iter.Next()
}

// CountTx returns the total count of txs in the mempool.
Expand Down

0 comments on commit 9073aaf

Please sign in to comment.