Skip to content

Commit

Permalink
fix: fvm: make exectraces match legacyVM some more
Browse files Browse the repository at this point in the history
  • Loading branch information
arajasek committed Jun 22, 2022
1 parent d6e00bc commit 866693f
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 866693f

Please sign in to comment.