Skip to content

Commit

Permalink
[DFI-480] fix fees flag (#157)
Browse files Browse the repository at this point in the history
* fix fee flag default parameter

* changed default fee
  • Loading branch information
borispovod authored Jul 7, 2020
1 parent 7203ecb commit c23b871
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion cmd/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (

const (
MainDenom = "dfi"
DefaultFee = "1" + MainDenom
DefaultFee = "100000000000000" + MainDenom
MainPrefix = "wallet" // Main prefix for all addresses.
Bech32PrefixAccAddr = MainPrefix // Bech32 prefix for account addresses.
Bech32PrefixAccPub = MainPrefix + sdk.PrefixPublic // Bech32 prefix for accounts pub keys.
Expand Down
1 change: 0 additions & 1 deletion cmd/dncli/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,6 @@ func queryCmd(cdc *amino.Codec) *cobra.Command {
func SetDefaultFeeForTxCmd(cmd *cobra.Command) {
if feesFlag := cmd.Flag(flags.FlagFees); feesFlag != nil {
feesFlag.DefValue = dnConfig.DefaultFee
feesFlag.NoOptDefVal = dnConfig.DefaultFee
feesFlag.Usage = "Fees to pay along with transaction; eg: " + dnConfig.DefaultFee

if feesFlag.Value.String() == "" {
Expand Down

0 comments on commit c23b871

Please sign in to comment.