From 97b1a402b17cc18ce80f04e90da2f128b3536ec1 Mon Sep 17 00:00:00 2001 From: Boris Povod Date: Wed, 20 May 2020 17:20:43 +0300 Subject: [PATCH] Default gas in cli to 500k (#122) * fix integ test * removed mvir mentions * fix integ test (#118) * updated help and examples for vm tx commands * [master] Remove mvir mentions (#120) * fix integ test * removed mvir mentions * updated help and examples for vm tx commands * fixed default gas in cli --- cmd/dncli/main.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/cmd/dncli/main.go b/cmd/dncli/main.go index 3e35cac0..fcdf7586 100644 --- a/cmd/dncli/main.go +++ b/cmd/dncli/main.go @@ -27,12 +27,20 @@ import ( "github.com/dfinance/dnode/x/vmauth" ) +const ( + // Default gas for CLI. + DefaultGas = 500000 +) + // Entry function for DN CLI. func main() { config := sdk.GetConfig() dnConfig.InitBechPrefixes(config) config.Seal() + // Set default gas. + flags.GasFlagVar = flags.GasSetting{Gas: DefaultGas} + cobra.EnableCommandSorting = false cdc := app.MakeCodec()