Skip to content

Commit

Permalink
Default gas in cli to 500k (#122)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
borispovod committed May 20, 2020
1 parent cdb537f commit 97b1a40
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions cmd/dncli/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down

0 comments on commit 97b1a40

Please sign in to comment.