Skip to content

Commit

Permalink
break when finding out the only pending tx that matches the nonce
Browse files Browse the repository at this point in the history
Signed-off-by: Masanori Yoshida <[email protected]>
  • Loading branch information
siburu committed Dec 24, 2024
1 parent d1c1b16 commit 3c25114
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/client/txpool/txpool.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ func GetMinimumRequiredFee(ctx context.Context, client *ethclient.Client, addres
for _, pendingTx := range pendingTxs {
if uint64(pendingTx.Nonce) == nonce {
targetTx = pendingTx
break
}
}
if targetTx == nil {
Expand Down

0 comments on commit 3c25114

Please sign in to comment.