Skip to content

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
dimriou committed Sep 30, 2024
1 parent d3431aa commit f372b14
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions core/cmd/shell_local.go
Original file line number Diff line number Diff line change
Expand Up @@ -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))

Check failure on line 690 in core/cmd/shell_local.go

View workflow job for this annotation

GitHub Actions / lint

G115: integer overflow conversion uint64 -> int64 (gosec)
}
err = ec.ForceRebroadcast(ctx, nonces, gas.EvmFee{GasPrice: assets.NewWeiI(int64(gasPriceWei))}, address, uint64(overrideGasLimit))
return s.errorOut(err)
}

Expand Down

0 comments on commit f372b14

Please sign in to comment.