Merge PR #4774: fix typo in panic message
This commit is contained in:
parent
c71eaf77b4
commit
231fefadb3
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue