diff --git a/cli/wallet.go b/cli/wallet.go index f7ad79e7795..9faa10677dd 100644 --- a/cli/wallet.go +++ b/cli/wallet.go @@ -647,9 +647,9 @@ var walletMarketWithdraw = &cli.Command{ return err } - fmt.Printf("Successfully withdrew %s FIL\n", withdrawn) + fmt.Printf("Successfully withdrew %s \n", types.FIL(withdrawn)) if withdrawn.LessThan(amt) { - fmt.Printf("Note that this is less than the requested amount of %s FIL\n", amt) + fmt.Printf("Note that this is less than the requested amount of %s \n", types.FIL(amt)) } } diff --git a/cmd/lotus-miner/actor.go b/cmd/lotus-miner/actor.go index c5c9f572afb..6c4611327e1 100644 --- a/cmd/lotus-miner/actor.go +++ b/cmd/lotus-miner/actor.go @@ -257,7 +257,7 @@ var actorWithdrawCmd = &cli.Command{ amount = abi.TokenAmount(f) if amount.GreaterThan(available) { - return xerrors.Errorf("can't withdraw more funds than available; requested: %s; available: %s", amount, available) + return xerrors.Errorf("can't withdraw more funds than available; requested: %s; available: %s", types.FIL(amount), types.FIL(available)) } } @@ -306,9 +306,9 @@ var actorWithdrawCmd = &cli.Command{ return err } - fmt.Printf("Successfully withdrew %s FIL\n", withdrawn) + fmt.Printf("Successfully withdrew %s \n", types.FIL(withdrawn)) if withdrawn.LessThan(amount) { - fmt.Printf("Note that this is less than the requested amount of %s FIL\n", amount) + fmt.Printf("Note that this is less than the requested amount of %s\n", types.FIL(amount)) } } diff --git a/cmd/lotus-shed/actor.go b/cmd/lotus-shed/actor.go index 822159bb4e4..7ddc79b1835 100644 --- a/cmd/lotus-shed/actor.go +++ b/cmd/lotus-shed/actor.go @@ -104,7 +104,7 @@ var actorWithdrawCmd = &cli.Command{ amount = abi.TokenAmount(f) if amount.GreaterThan(available) { - return xerrors.Errorf("can't withdraw more funds than available; requested: %s; available: %s", amount, available) + return xerrors.Errorf("can't withdraw more funds than available; requested: %s; available: %s", types.FIL(amount), types.FIL(available)) } } @@ -151,9 +151,9 @@ var actorWithdrawCmd = &cli.Command{ return err } - fmt.Printf("Successfully withdrew %s FIL\n", withdrawn) + fmt.Printf("Successfully withdrew %s \n", types.FIL(withdrawn)) if withdrawn.LessThan(amount) { - fmt.Printf("Note that this is less than the requested amount of %s FIL\n", amount) + fmt.Printf("Note that this is less than the requested amount of %s \n", types.FIL(amount)) } }