Appease the linter
This commit is contained in:
parent
d7bb284e57
commit
001d4ab002
@ -33,7 +33,7 @@ var actorSetAddrsCmd = &cli.Command{
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
Action: func(cctx *cli.Context) error {
|
Action: func(cctx *cli.Context) error {
|
||||||
nodeApi, closer, err := lcli.GetStorageMinerAPI(cctx)
|
nodeAPI, closer, err := lcli.GetStorageMinerAPI(cctx)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
@ -57,7 +57,7 @@ var actorSetAddrsCmd = &cli.Command{
|
|||||||
addrs = append(addrs, maddr.Bytes())
|
addrs = append(addrs, maddr.Bytes())
|
||||||
}
|
}
|
||||||
|
|
||||||
maddr, err := nodeApi.ActorAddress(ctx)
|
maddr, err := nodeAPI.ActorAddress(ctx)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
@ -67,7 +67,7 @@ var actorSetAddrsCmd = &cli.Command{
|
|||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
params, err := actors.SerializeParams(&miner.ChangeMultiaddrsParams{addrs})
|
params, err := actors.SerializeParams(&miner.ChangeMultiaddrsParams{NewMultiaddrs: addrs})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
@ -83,6 +83,9 @@ var actorSetAddrsCmd = &cli.Command{
|
|||||||
Method: 18,
|
Method: 18,
|
||||||
Params: params,
|
Params: params,
|
||||||
})
|
})
|
||||||
|
if err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
|
||||||
fmt.Printf("Requested multiaddrs change in message %s\n", smsg.Cid())
|
fmt.Printf("Requested multiaddrs change in message %s\n", smsg.Cid())
|
||||||
return nil
|
return nil
|
||||||
|
Loading…
Reference in New Issue
Block a user