Fix Coin.IsGTE logic bug

flag redescription
This commit is contained in:
rigelrozanski
2017-02-13 17:01:28 -05:00
parent d2ac609fa3
commit c835ebf650
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -100,7 +100,7 @@ func (coinsA Coins) IsGTE(coinsB Coins) bool {
if len(diff) == 0 {
return true
}
return diff.IsPositive()
return diff.IsNonnegative()
}
func (coins Coins) IsZero() bool {