Skip to content

Commit

Permalink
Merge pull request ethereum#978 from ethereum/fixConsole
Browse files Browse the repository at this point in the history
Fix event decoding
  • Loading branch information
yann300 authored Jan 4, 2018
2 parents 5016f78 + b4331ce commit d50dcc4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/app/execution/eventsDecoder.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,9 @@ class EventsDecoder {
var encodedData = log.topics[indexed].replace('0x', '')
try {
decoded[index] = ethJSABI.rawDecode([item.type], new Buffer(encodedData, 'hex'))[0]
decoded[index] = ethJSABI.stringify([item.type], decoded[index])
if (typeof decoded[index] !== 'string') {
decoded[index] = ethJSABI.stringify([item.type], decoded[index])
}
} catch (e) {
decoded[index] = encodedData
}
Expand Down

0 comments on commit d50dcc4

Please sign in to comment.