Skip to content

Commit

Permalink
Merge pull request #8893 from filecoin-project/asr/exec-trace-v16
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 eb9c342 + e860a05 commit a43231b
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 @@ -344,13 +344,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 a43231b

Please sign in to comment.