Merge pull request #2562 from filecoin-project/feat/add-gas-limit-to-send

cli: allow setting gas limit in send
This commit is contained in:
Whyrusleeping
2020-07-23 18:36:26 -07:00
committed by GitHub
+6
View File
@@ -31,6 +31,11 @@ var sendCmd = &cli.Command{
Usage: "specify gas price to use in AttoFIL",
Value: "0",
},
&cli.Int64Flag{
Name: "gas-limit",
Usage: "specify gas limit",
Value: 0,
},
&cli.Int64Flag{
Name: "nonce",
Usage: "specify the nonce to use",
@@ -121,6 +126,7 @@ var sendCmd = &cli.Command{
To: toAddr,
Value: types.BigInt(val),
GasPrice: gp,
GasLimit: cctx.Int64("gas-limit"),
Method: method,
Params: params,
}