Skip to content

Commit

Permalink
Use mustValidateDenom in NewDecCoinFromDec
Browse files Browse the repository at this point in the history
  • Loading branch information
Alessio Treglia committed Feb 16, 2019
1 parent c8cba87 commit 7b12bcb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion types/dec_coin.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ func NewDecCoin(denom string, amount Int) DecCoin {
}

func NewDecCoinFromDec(denom string, amount Dec) DecCoin {
validateDenom(denom)
mustValidateDenom(denom)

if amount.LT(ZeroDec()) {
panic(fmt.Sprintf("negative decimal coin amount: %v\n", amount))
Expand Down

0 comments on commit 7b12bcb

Please # to comment.