make send print its cid

This commit is contained in:
Jeromy 2020-04-22 19:57:11 -07:00
parent c64dbfcf40
commit 42c5c6b4e4

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