Merge pull request #1952 from laser/feat/805-warn-lotus-balance
display a little inline warning if balance is zero
This commit is contained in:
commit
87e5c38e32
@ -113,7 +113,12 @@ var walletBalance = &cli.Command{
|
|||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
fmt.Printf("%s\n", types.FIL(balance))
|
if balance.Equals(types.NewInt(0)) {
|
||||||
|
fmt.Printf("%s (warning: may display 0 if chain sync in progress)\n", types.FIL(balance))
|
||||||
|
} else {
|
||||||
|
fmt.Printf("%s\n", types.FIL(balance))
|
||||||
|
}
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user