Skip to content

Commit

Permalink
use no decimals
Browse files Browse the repository at this point in the history
  • Loading branch information
landoyjx committed Jun 17, 2020
1 parent 81640a6 commit dadd649
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 1 addition & 2 deletions baseapp/options.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@ func SetPruning(opts sdk.PruningOptions) func(*BaseApp) {

// SetMinGasPrices returns an option that sets the minimum gas prices on the app.
func SetMinGasPrices(gasPricesStr string) func(*BaseApp) {
gasPrices, err := sdk.ParseCoins(gasPricesStr)
// gasPrices, err := sdk.ParseDecCoins(gasPricesStr)
gasPrices, err := sdk.ParseDecCoins(gasPricesStr)
if err != nil {
panic(fmt.Sprintf("invalid minimum gas prices: %v", err))
}
Expand Down
3 changes: 2 additions & 1 deletion types/coin.go
Original file line number Diff line number Diff line change
Expand Up @@ -587,7 +587,8 @@ var (
reSpc = `[[:space:]]*`
reDnm = regexp.MustCompile(fmt.Sprintf(`^%s$`, reDnmString))
reCoin = regexp.MustCompile(fmt.Sprintf(`^(%s)%s(%s)$`, reAmt, reSpc, reDnmString))
reDecCoin = regexp.MustCompile(fmt.Sprintf(`^(%s)%s(%s)$`, reDecAmt, reSpc, reDnmString))
// all use reDnm, no decimal
reDecCoin = regexp.MustCompile(fmt.Sprintf(`^(%s)%s(%s)$`, reAmt, reSpc, reDnmString))
)

// ValidateDenom validates a denomination string returning an error if it is
Expand Down

0 comments on commit dadd649

Please sign in to comment.