Merge pull request #8893 from filecoin-project/asr/exec-trace-v16

fix: fvm: make exectraces match legacyVM some more
This commit is contained in:
Aayush Rajasekaran 2022-06-22 14:14:45 -04:00 committed by GitHub
commit a43231b95a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -344,14 +344,15 @@ 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 {
}
// 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{
MessageReceipt: receipt,