From c835ebf650caeb0f778f75979975cfc81351f04f Mon Sep 17 00:00:00 2001 From: rigelrozanski Date: Fri, 10 Feb 2017 13:53:40 -0500 Subject: [PATCH] Fix Coin.IsGTE logic bug flag redescription --- cmd/commands/flags.go | 4 ++-- types/coin.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cmd/commands/flags.go b/cmd/commands/flags.go index 980c0b67a1..0c4c477707 100644 --- a/cmd/commands/flags.go +++ b/cmd/commands/flags.go @@ -51,7 +51,7 @@ var ( AmountFlag = cli.StringFlag{ Name: "amount", Value: "", - Usage: "Coins to send in transaction of the format ,,... (eg: 1gold,2silver,5btc)", + Usage: "Coins to send in transaction of the format ,,... (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 ,,... (eg: 1gold,2silver,5btc)", + Usage: "Coins for the transaction fee of the format ", } DataFlag = cli.StringFlag{ diff --git a/types/coin.go b/types/coin.go index 23dc8f0868..b64f78bc97 100644 --- a/types/coin.go +++ b/types/coin.go @@ -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 {