From 9adaa9b9679be3f67dce75ff41966d3a6333564d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Magiera?= Date: Wed, 17 Nov 2021 23:10:14 +0100 Subject: [PATCH] lotus-shed msg: Decode submessages/msig proposals --- cmd/lotus-shed/msg.go | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/cmd/lotus-shed/msg.go b/cmd/lotus-shed/msg.go index b640fb9c9..7853624a6 100644 --- a/cmd/lotus-shed/msg.go +++ b/cmd/lotus-shed/msg.go @@ -148,6 +148,15 @@ func printMessage(cctx *cli.Context, msg *types.Message) error { fmt.Println("Params:", p) + if msg, err := messageFromBytes(cctx, msg.Params); err == nil { + fmt.Println("---") + color.Red("Params message:") + + if err := printMessage(cctx, msg.VMMessage()); err != nil { + return err + } + } + return nil }