Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ BINANCE_TGORACLE_DIR=$(GOPATH)/src/$(PKG_BINANCE_TGORACLE)
# NOTE: To build on Jenkins using a custom go-loom branch update the `deps` target below to checkout
# that branch, you only need to update GO_LOOM_GIT_REV if you wish to lock the build to a
# specific commit.
GO_LOOM_GIT_REV = HEAD
GO_LOOM_GIT_REV = change-event-data
# Specifies the loomnetwork/transfer-gateway branch/revision to use.
TG_GIT_REV = HEAD
# loomnetwork/go-ethereum loomchain branch
Expand Down
11 changes: 5 additions & 6 deletions plugin/vm.go
Original file line number Diff line number Diff line change
Expand Up @@ -304,12 +304,11 @@ func (c *contractContext) EmitTopics(event []byte, topics ...string) {
return
}
data := types.EventData{
Topics: topics,
Caller: c.caller.MarshalPB(),
Address: c.address.MarshalPB(),
PluginName: c.pluginName,
EncodedBody: event,
OriginalRequest: c.req.Body,
Topics: topics,
Caller: c.caller.MarshalPB(),
Address: c.address.MarshalPB(),
PluginName: c.pluginName,
EncodedBody: event,
}
height := uint64(c.State.Block().Height)
c.eventHandler.Post(height, &data)
Expand Down
7 changes: 3 additions & 4 deletions receipts/handler/evm_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,9 @@ func (r *ReceiptHandler) GetEventsFromLogs(
ChainID: caller.ChainID,
Local: log.Address.Bytes(),
}.MarshalPB(),
BlockHeight: uint64(blockHeight),
PluginName: contract.Local.String(),
EncodedBody: log.Data,
OriginalRequest: input,
BlockHeight: uint64(blockHeight),
PluginName: contract.Local.String(),
EncodedBody: log.Data,
}
events = append(events, eventData)
}
Expand Down