Unverified Commit 34504f91 authored by yann300's avatar yann300 Committed by GitHub

Merge pull request #778 from ethereum/yann300-patch-6

Update eventsDecoder.js
parents 046b62a7 03b1a268
......@@ -76,9 +76,9 @@ class EventsDecoder {
var topics = log.topics.map((value) => {
return value.indexOf('0x') === 0 ? value : '0x' + value
})
events.push({ topic: topicId, event: abi.event, args: abi.object.parse(topics, '0x' + log.data) })
events.push({ from: log.address, topic: topicId, event: abi.event, args: abi.object.parse(topics, '0x' + log.data) })
} else {
events.push({ data: log.data, topics: log.topics })
events.push({ from: log.address, data: log.data, topics: log.topics })
}
}
cb(null, { decoded: events, raw: logs })
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment