From 1bd7f5b7ecfd8285c5f011ef8a59423adbd2a401 Mon Sep 17 00:00:00 2001 From: Jakub Sztandera Date: Mon, 11 Oct 2021 14:03:37 +0200 Subject: [PATCH] Fix withdrawn amount equiality check Co-authored-by: Jiaying Wang <42981373+jennijuju@users.noreply.github.com> --- cli/wallet.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli/wallet.go b/cli/wallet.go index df526dc03..5f3053293 100644 --- a/cli/wallet.go +++ b/cli/wallet.go @@ -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) } }