diff --git a/cli/mpool.go b/cli/mpool.go index 87e928e08..fe36c0c7d 100644 --- a/cli/mpool.go +++ b/cli/mpool.go @@ -448,7 +448,9 @@ var mpoolReplaceCmd = &cli.Command{ messagepool.CapGasFee(mff, &msg, mss.Get().MaxFee) } else { - msg.GasLimit = cctx.Int64("gas-limit") + if cctx.IsSet("gas-limit") { + msg.GasLimit = cctx.Int64("gas-limit") + } msg.GasPremium, err = types.BigFromString(cctx.String("gas-premium")) if err != nil { return fmt.Errorf("parsing gas-premium: %w", err)