Update FIL format

Co-authored-by: Łukasz Magiera <magik6k@users.noreply.github.com>
This commit is contained in:
Frank 2021-01-07 11:22:23 +08:00 committed by GitHub
parent dbe580de10
commit fef5d65c0f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -156,7 +156,7 @@ var sendCmd = &cli.Command{
totalCost := types.BigAdd(types.BigMul(msg.GasFeeCap, types.NewInt(uint64(msg.GasLimit))), msg.Value)
if fromBalance.LessThan(totalCost) {
fmt.Printf("From balance %s attoFIL less than total cost %s attoFIL\n", fromBalance, totalCost)
fmt.Printf("From balance %s less than total cost %s\n", types.FIL(fromBalance), types.FIL(totalCost))
if !cctx.Bool("force") {
return fmt.Errorf("--force must be specified for this action to have an effect; " +
"you have been warned")