Make --gas-limit optional in mpool replace cli
This commit is contained in:
parent
13a5b7f539
commit
f4913c19b1
@ -442,7 +442,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)
|
||||
|
Loading…
Reference in New Issue
Block a user