Merge PR #4774: fix typo in panic message

This commit is contained in:
kevlubkcm 2019-07-24 15:13:35 -04:00 committed by Alexander Bezobchuk
parent c71eaf77b4
commit 231fefadb3
1 changed files with 1 additions and 1 deletions

View File

@ -124,7 +124,7 @@ func (coin Coin) Sub(coinB Coin) Coin {
res := Coin{coin.Denom, coin.Amount.Sub(coinB.Amount)} res := Coin{coin.Denom, coin.Amount.Sub(coinB.Amount)}
if res.IsNegative() { if res.IsNegative() {
panic("negative count amount") panic("negative coin amount")
} }
return res return res