fix error unknown address protocol when run lotus msig create in cli/mutisig.go
This commit is contained in:
parent
6603fc5975
commit
2a10a79460
@ -144,14 +144,22 @@ 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 {
|
||||
// msigaddr, err := address.NewFromBytes(wait.Receipt.Return)
|
||||
// if err != nil {
|
||||
// return err
|
||||
// }
|
||||
|
||||
// fmt.Println("Created new multisig: ", msigaddr.String())
|
||||
|
||||
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
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user