From 866693f3d5193cab66c5670bd0a9539bc8fc1a1c Mon Sep 17 00:00:00 2001 From: Aayush Date: Wed, 22 Jun 2022 11:26:23 -0400 Subject: [PATCH] fix: fvm: make exectraces match legacyVM some more --- chain/vm/fvm.go | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/chain/vm/fvm.go b/chain/vm/fvm.go index b0ec3a0d6..81b561f2e 100644 --- a/chain/vm/fvm.go +++ b/chain/vm/fvm.go @@ -339,13 +339,14 @@ func (vm *FVM) ApplyMessage(ctx context.Context, cmsg types.ChainMsg) (*ApplyRet return nil, xerrors.Errorf("failed to unmarshal exectrace: %w", err) } et = fvmEt.ToExecutionTrace() - } else { - et.Msg = vmMsg - et.MsgRct = &receipt - et.Duration = duration - if aerr != nil { - et.Error = aerr.Error() - } + } + + // Set the top-level exectrace info from the message and receipt for backwards compatibility + et.Msg = vmMsg + et.MsgRct = &receipt + et.Duration = duration + if aerr != nil { + et.Error = aerr.Error() } return &ApplyRet{