Commit 99b51f6d authored by chriseth's avatar chriseth Committed by GitHub

Merge pull request #190 from ethereum/fix-event-crashes

Do not crash if event is not found in the ABI
parents 7698da2e a731bf5a
......@@ -253,11 +253,12 @@ UniversalDApp.prototype.getInstanceInterface = function (contract, address, $tar
for (var i in response.vm.logs) {
// [address, topics, mem]
var log = response.vm.logs[i];
var abi = eventABI[log[1][0].toString('hex')];
var event = abi.event;
var event;
var decoded;
try {
var abi = eventABI[log[1][0].toString('hex')];
event = abi.event;
var types = abi.inputs.map(function (item) {
return item.type;
});
......
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