Merge pull request #10893 from simlecode/opt/output-events-root

opt: cli: If present, print Events Root
This commit is contained in:
Łukasz Magiera 2023-05-23 11:50:21 +02:00 committed by GitHub
commit 6b4a46d273
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1528,6 +1528,9 @@ func printMsg(ctx context.Context, api v0api.FullNode, msg cid.Cid, mw *lapi.Msg
if err := printReceiptReturn(ctx, api, m, mw.Receipt); err != nil {
return err
}
if mw.Receipt.EventsRoot != nil {
fmt.Printf("Events Root: %s\n", mw.Receipt.EventsRoot)
}
return nil
}