From 9fdaa698523e5ec1e0342d68353bb3ce2cc1e557 Mon Sep 17 00:00:00 2001 From: d11e9 Date: Fri, 9 Oct 2015 09:57:05 +0100 Subject: [PATCH] woop getting vm logs --- libs/universal-dapp.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/libs/universal-dapp.js b/libs/universal-dapp.js index 88eed92c0e..f866c10ca8 100644 --- a/libs/universal-dapp.js +++ b/libs/universal-dapp.js @@ -134,8 +134,9 @@ UniversalDApp.prototype.getInstanceInterface = function (contract, address, $tar $events = $('
'); if (self.options.vm){ - self.vm.on('step', function(){console.log("step: ", arguments )}) - self.vm.on('afterTx', function(){ console.log("afterTx: ", arguments )}) + self.vm.on('afterTx', function(response){ + // TODO: parse/use reponse.vm.logs + }); } else { var jsInterface = web3.eth.contract(abi).at(address) var eventFilter = jsInterface.allEvents();