Skip to content

Commit

Permalink
Merge PR cosmos#4774: fix typo in panic message
Browse files Browse the repository at this point in the history
  • Loading branch information
kevlubkcm authored and alexanderbez committed Jul 24, 2019
1 parent c71eaf7 commit 231fefa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion types/coin.go
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ func (coin Coin) Sub(coinB Coin) Coin {

res := Coin{coin.Denom, coin.Amount.Sub(coinB.Amount)}
if res.IsNegative() {
panic("negative count amount")
panic("negative coin amount")
}

return res
Expand Down

0 comments on commit 231fefa

Please sign in to comment.