You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Unfortunately, our decimal coins implementation didn't receive as much TLC as our coins implementation did. All arithmetic assumes the invariant that the coins are valid and sorted. We need to update documentation and update NewDecCoins.
fedekunze
changed the title
Upexpected "negative coin amount" in DecCoin's Sub, Suggest sort before sub.
Unexpected "negative coin amount" in DecCoin's Sub, Suggest sort before sub.
Dec 16, 2019
Summary of Bug
Upexpected negative coin amount in DecCoin's Sub
When call DecCoins's Sub, if not sort the coins before, an unexpected "negative coin amount" happen.
Version
Cosmos-sdk v0.37.2
Steps to Reproduce
Run the following test code, a panic happens,.
For Admin Use
The text was updated successfully, but these errors were encountered: