Merge pull request #10079 from filecoin-project/raulk/fixed-wrong-message-events

fix: events: put the _signed_ message through the pipeline.
This commit is contained in:
Jiaying Wang 2023-01-19 19:54:31 -05:00 committed by GitHub
commit 1ce3ef0416
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -266,13 +266,13 @@ func (te *TipSetEvents) messages(ctx context.Context) ([]executedMessage, error)
}
type executedMessage struct {
msg *types.Message
msg types.ChainMsg
rct *types.MessageReceipt
// events extracted from receipt
evs []*types.Event
}
func (e *executedMessage) Message() *types.Message {
func (e *executedMessage) Message() types.ChainMsg {
return e.msg
}
@ -428,7 +428,7 @@ func (m *EventFilterManager) loadExecutedMessages(ctx context.Context, msgTs, rc
ems := make([]executedMessage, len(msgs))
for i := 0; i < len(msgs); i++ {
ems[i].msg = msgs[i].VMMessage()
ems[i].msg = msgs[i]
var rct types.MessageReceipt
found, err := arr.Get(uint64(i), &rct)