Fix withdrawn amount equiality check

Co-authored-by: Jiaying Wang <42981373+jennijuju@users.noreply.github.com>
This commit is contained in:
Jakub Sztandera 2021-10-11 14:03:37 +02:00 committed by GitHub
parent 8533ae0032
commit 4853762763
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -648,7 +648,7 @@ var walletMarketWithdraw = &cli.Command{
}
fmt.Printf("Successfully withdrew %s FIL\n", withdrawn)
if withdrawn != amt {
if withdrawn.LessThan(amount) {
fmt.Printf("Note that this is less than the requested amount of %s FIL\n", amt)
}
}