make sure user passes an address

This commit is contained in:
whyrusleeping 2019-08-16 15:50:00 -07:00
parent 4f91550851
commit 2c5d7e733b

View File

@ -26,6 +26,10 @@ var minerStart = &cli.Command{
ctx := ReqContext(cctx) ctx := ReqContext(cctx)
if !cctx.Args().Present() {
return fmt.Errorf("must specify miner actor address to mine for")
}
// TODO: need to pull this from disk or something // TODO: need to pull this from disk or something
maddr, err := address.NewFromString(cctx.Args().First()) maddr, err := address.NewFromString(cctx.Args().First())
if err != nil { if err != nil {