Merge pull request #3300 from filecoin-project/fix/set-peer-id

fix parsing of peerID in input to set-peer-id
This commit is contained in:
Whyrusleeping 2020-08-25 17:26:05 -07:00 committed by GitHub
commit 0009f7c8dc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -137,7 +137,7 @@ var actorSetPeeridCmd = &cli.Command{
ctx := lcli.ReqContext(cctx) ctx := lcli.ReqContext(cctx)
pid, err := peer.IDFromString(cctx.Args().Get(0)) pid, err := peer.Decode(cctx.Args().Get(0))
if err != nil { if err != nil {
return fmt.Errorf("failed to parse input as a peerId: %w", err) return fmt.Errorf("failed to parse input as a peerId: %w", err)
} }