Merge pull request #978 from ethereum/fixConsole

Fix event decoding
pull/1/head v0.5
yann300 7 years ago committed by GitHub
commit d50dcc4b25
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      src/app/execution/eventsDecoder.js

@ -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
}

Loading…
Cancel
Save