From 9b711adfd16be691087bda69a6ebb211faa3c300 Mon Sep 17 00:00:00 2001 From: Travis Person Date: Fri, 24 Jul 2020 00:23:48 +0000 Subject: [PATCH] cli: allow setting gas limit in send --- cli/send.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/cli/send.go b/cli/send.go index 438748f37..a528f355e 100644 --- a/cli/send.go +++ b/cli/send.go @@ -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, }