fix event decoding

pull/3094/head
yann300 7 years ago
parent 20efb415af
commit 9e32641cfa
  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