From 3c25114bd00dec3eb6a94e98e5b0a683990b878f Mon Sep 17 00:00:00 2001 From: Masanori Yoshida Date: Tue, 24 Dec 2024 10:22:47 +0900 Subject: [PATCH] break when finding out the only pending tx that matches the nonce Signed-off-by: Masanori Yoshida --- pkg/client/txpool/txpool.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/client/txpool/txpool.go b/pkg/client/txpool/txpool.go index f90ec5f..383a153 100644 --- a/pkg/client/txpool/txpool.go +++ b/pkg/client/txpool/txpool.go @@ -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 {