From e40c7b7a8687018711df1e9714fc13167c3a6529 Mon Sep 17 00:00:00 2001 From: Jakub Sztandera Date: Mon, 11 Oct 2021 14:03:28 +0200 Subject: [PATCH] Fix withdrawn amount equiality check Co-authored-by: Jiaying Wang <42981373+jennijuju@users.noreply.github.com> --- cmd/lotus-miner/actor.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/lotus-miner/actor.go b/cmd/lotus-miner/actor.go index 480ebeeff..7f0f2833d 100644 --- a/cmd/lotus-miner/actor.go +++ b/cmd/lotus-miner/actor.go @@ -306,7 +306,7 @@ var actorWithdrawCmd = &cli.Command{ } fmt.Printf("Successfully withdrew %s FIL\n", withdrawn) - if withdrawn != amount { + if withdrawn.LessThan(amount) { fmt.Printf("Note that this is less than the requested amount of %s FIL\n", amount) } }