From f372b14194d58009069c1dce5fa3095d40934da9 Mon Sep 17 00:00:00 2001 From: Dimitris Date: Mon, 30 Sep 2024 16:37:13 +0300 Subject: [PATCH] Fix lint --- core/cmd/shell_local.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/core/cmd/shell_local.go b/core/cmd/shell_local.go index 57ecb76d7cf..5cddde11a95 100644 --- a/core/cmd/shell_local.go +++ b/core/cmd/shell_local.go @@ -685,9 +685,10 @@ func (s *Shell) RebroadcastTransactions(c *cli.Context) (err error) { nonces[i] = evmtypes.Nonce(beginningNonce + i) } if gasPriceWei > math.MaxInt64 { - return s.errorOut(fmt.Errorf("integer overflow conversion error. GasPrice: %v", gasPriceWei)) + err = fmt.Errorf("integer overflow conversion error. GasPrice: %v", gasPriceWei) + } else { + err = ec.ForceRebroadcast(ctx, nonces, gas.EvmFee{GasPrice: assets.NewWeiI(int64(gasPriceWei))}, address, uint64(overrideGasLimit)) } - err = ec.ForceRebroadcast(ctx, nonces, gas.EvmFee{GasPrice: assets.NewWeiI(int64(gasPriceWei))}, address, uint64(overrideGasLimit)) return s.errorOut(err) }