Merge pull request #1581 from filecoin-project/fix/send-msg-cid

make send print its cid
This commit is contained in:
Whyrusleeping 2020-04-22 20:11:56 -07:00 committed by GitHub
commit c4302ddc1f

View File

@ -92,11 +92,13 @@ var sendCmd = &cli.Command{
if err != nil {
return err
}
fmt.Println(sm.Cid())
} else {
_, err = api.MpoolPushMessage(ctx, msg)
sm, err := api.MpoolPushMessage(ctx, msg)
if err != nil {
return err
}
fmt.Println(sm.Cid())
}
return nil