From 3207c695284a4e952d8bc6641969c86320c0c906 Mon Sep 17 00:00:00 2001 From: simlecode <69969590+simlecode@users.noreply.github.com> Date: Fri, 19 May 2023 16:55:43 +0800 Subject: [PATCH] opt: cli: If present, print Events Root --- cli/state.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cli/state.go b/cli/state.go index 9031ba870..2750ca680 100644 --- a/cli/state.go +++ b/cli/state.go @@ -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 }