Commit 8143fd1c authored by yann300's avatar yann300 Committed by GitHub

Merge pull request #557 from ethereum/fixVMProvider

fix: do not throw if no topic
parents a71fa110 0bb2ba21
......@@ -94,7 +94,7 @@ web3VmProvider.prototype.txProcessed = function (self, data) {
var log = data.vm.logs[l]
logs.push({
data: log[2].toString('hex'),
topics: [log[1][0].toString('hex')],
topics: log[1].length > 0 ? [log[1][0].toString('hex')] : ['0x'],
rawVMResponse: log
})
}
......
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