Fix Coin.IsGTE logic bug

flag redescription
This commit is contained in:
rigelrozanski 2017-02-10 13:53:40 -05:00
parent d2ac609fa3
commit c835ebf650
2 changed files with 3 additions and 3 deletions

View File

@ -51,7 +51,7 @@ var (
AmountFlag = cli.StringFlag{
Name: "amount",
Value: "",
Usage: "Coins to send in transaction of the format <amt><coin>,<amt2><coin2>,... (eg: 1gold,2silver,5btc)",
Usage: "Coins to send in transaction of the format <amt><coin>,<amt2><coin2>,... (eg: 1btc,2gold,5silver)",
}
FromFlag = cli.StringFlag{
@ -75,7 +75,7 @@ var (
FeeFlag = cli.StringFlag{
Name: "fee",
Value: "",
Usage: "Coins for the transaction fee of the format <amt><coin>,<amt2><coin2>,... (eg: 1gold,2silver,5btc)",
Usage: "Coins for the transaction fee of the format <amt><coin>",
}
DataFlag = cli.StringFlag{

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 {