diff --git a/cmd/lotus-miner/actor.go b/cmd/lotus-miner/actor.go index 0595c447a..56a58052a 100644 --- a/cmd/lotus-miner/actor.go +++ b/cmd/lotus-miner/actor.go @@ -689,12 +689,6 @@ var actorSetOwnerCmd = &cli.Command{ return fmt.Errorf("must pass new owner address and sender address") } - nodeApi, closer, err := lcli.GetStorageMinerAPI(cctx) - if err != nil { - return err - } - defer closer() - api, acloser, err := lcli.GetFullNodeAPI(cctx) if err != nil { return err @@ -723,7 +717,7 @@ var actorSetOwnerCmd = &cli.Command{ return err } - maddr, err := nodeApi.ActorAddress(ctx) + maddr, err := getActorAddress(ctx, cctx) if err != nil { return err } diff --git a/cmd/lotus-miner/main.go b/cmd/lotus-miner/main.go index 47eb3e66f..954a958b6 100644 --- a/cmd/lotus-miner/main.go +++ b/cmd/lotus-miner/main.go @@ -104,7 +104,7 @@ func main() { &cli.StringFlag{ Name: "actor", Value: "", - Usage: "specify other actor to check state for (read only)", + Usage: "specify other actor to query / manipulate", Aliases: []string{"a"}, }, &cli.BoolFlag{ diff --git a/documentation/en/cli-lotus-miner.md b/documentation/en/cli-lotus-miner.md index 32740e9de..7266a99ab 100644 --- a/documentation/en/cli-lotus-miner.md +++ b/documentation/en/cli-lotus-miner.md @@ -41,7 +41,7 @@ COMMANDS: sealing interact with sealing pipeline GLOBAL OPTIONS: - --actor value, -a value specify other actor to check state for (read only) + --actor value, -a value specify other actor to query / manipulate --color use color in display output (default: depends on output being a TTY) --miner-repo value, --storagerepo value Specify miner repo path. flag(storagerepo) and env(LOTUS_STORAGE_PATH) are DEPRECATION, will REMOVE SOON (default: "~/.lotusminer") [$LOTUS_MINER_PATH, $LOTUS_STORAGE_PATH] --markets-repo value Markets repo path [$LOTUS_MARKETS_PATH]