Merge pull request #1544 from dayu26/interopnet_dy

fix error "unknown address protocol" when run lotus msig create in cli/…
This commit is contained in:
Łukasz Magiera 2020-04-17 18:25:13 +02:00 committed by GitHub
commit 95bd55b754

View File

@ -144,14 +144,16 @@ var msigCreateCmd = &cli.Command{
fmt.Println("actor creation failed!")
return err
}
// get address of newly created miner
msigaddr, err := address.NewFromBytes(wait.Receipt.Return)
if err != nil {
var execreturn init_.ExecReturn
if err := execreturn.UnmarshalCBOR(bytes.NewReader(wait.Receipt.Return)); err != nil {
return err
}
fmt.Println("Created new multisig: ", msigaddr.String())
fmt.Println("Created new multisig: ", execreturn.IDAddress, execreturn.RobustAddress)
// TODO: maybe register this somewhere
return nil
},