cli: allow setting gas limit in send
This commit is contained in:
parent
474ab02d44
commit
9b711adfd1
@ -31,6 +31,11 @@ var sendCmd = &cli.Command{
|
|||||||
Usage: "specify gas price to use in AttoFIL",
|
Usage: "specify gas price to use in AttoFIL",
|
||||||
Value: "0",
|
Value: "0",
|
||||||
},
|
},
|
||||||
|
&cli.Int64Flag{
|
||||||
|
Name: "gas-limit",
|
||||||
|
Usage: "specify gas limit",
|
||||||
|
Value: 0,
|
||||||
|
},
|
||||||
&cli.Int64Flag{
|
&cli.Int64Flag{
|
||||||
Name: "nonce",
|
Name: "nonce",
|
||||||
Usage: "specify the nonce to use",
|
Usage: "specify the nonce to use",
|
||||||
@ -121,6 +126,7 @@ var sendCmd = &cli.Command{
|
|||||||
To: toAddr,
|
To: toAddr,
|
||||||
Value: types.BigInt(val),
|
Value: types.BigInt(val),
|
||||||
GasPrice: gp,
|
GasPrice: gp,
|
||||||
|
GasLimit: cctx.Int64("gas-limit"),
|
||||||
Method: method,
|
Method: method,
|
||||||
Params: params,
|
Params: params,
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user