Fix Coin.IsGTE logic bug
flag redescription
This commit is contained in:
parent
d2ac609fa3
commit
c835ebf650
@ -51,7 +51,7 @@ var (
|
|||||||
AmountFlag = cli.StringFlag{
|
AmountFlag = cli.StringFlag{
|
||||||
Name: "amount",
|
Name: "amount",
|
||||||
Value: "",
|
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{
|
FromFlag = cli.StringFlag{
|
||||||
@ -75,7 +75,7 @@ var (
|
|||||||
FeeFlag = cli.StringFlag{
|
FeeFlag = cli.StringFlag{
|
||||||
Name: "fee",
|
Name: "fee",
|
||||||
Value: "",
|
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{
|
DataFlag = cli.StringFlag{
|
||||||
|
|||||||
@ -100,7 +100,7 @@ func (coinsA Coins) IsGTE(coinsB Coins) bool {
|
|||||||
if len(diff) == 0 {
|
if len(diff) == 0 {
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
return diff.IsPositive()
|
return diff.IsNonnegative()
|
||||||
}
|
}
|
||||||
|
|
||||||
func (coins Coins) IsZero() bool {
|
func (coins Coins) IsZero() bool {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user