Skip to content

Commit

Permalink
Merge pull request #8889 from filecoin-project/asr/exec-trace
Browse files Browse the repository at this point in the history
fix: fvm: make exectraces match legacyVM some more
  • Loading branch information
arajasek authored Jun 22, 2022
2 parents d6e00bc + 866693f commit a80da7f
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions chain/vm/fvm.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{
Expand Down

0 comments on commit a80da7f

Please sign in to comment.