Skip to content

Commit

Permalink
added eventIndex (#125)
Browse files Browse the repository at this point in the history
  • Loading branch information
bjartek authored Jun 19, 2023
1 parent b5f1050 commit 82e6f79
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions event.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ type OverflowEvent struct {
Id string `json:"id"`
Fields map[string]interface{} `json:"fields"`
TransactionId string `json:"transactionID"`
EventIndex uint32 `json:"eventIndex"`
Name string `json:"name"`
Addresses map[string][]string `json:"addresses"`
}
Expand Down Expand Up @@ -139,6 +140,7 @@ func parseEvents(events []flow.Event) (OverflowEvents, OverflowEvent) {
Fields: finalFields,
Name: event.Type,
TransactionId: event.TransactionID.String(),
EventIndex: uint32(event.EventIndex),
Addresses: addresses,
})
overflowEvents[event.Type] = events
Expand Down

0 comments on commit 82e6f79

Please sign in to comment.