From 9bb862d025eb7a915f5143bbd1369c2cb68a6278 Mon Sep 17 00:00:00 2001 From: whyrusleeping Date: Tue, 25 Aug 2020 17:10:06 -0700 Subject: [PATCH] fix parsing of peerID in input to set-peer-id --- cmd/lotus-storage-miner/actor.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/lotus-storage-miner/actor.go b/cmd/lotus-storage-miner/actor.go index 01c6f57d7..e69a338ab 100644 --- a/cmd/lotus-storage-miner/actor.go +++ b/cmd/lotus-storage-miner/actor.go @@ -137,7 +137,7 @@ var actorSetPeeridCmd = &cli.Command{ ctx := lcli.ReqContext(cctx) - pid, err := peer.IDFromString(cctx.Args().Get(0)) + pid, err := peer.Decode(cctx.Args().Get(0)) if err != nil { return fmt.Errorf("failed to parse input as a peerId: %w", err) }