woop getting vm logs

pull/1/head
d11e9 9 years ago
parent b0d2e867a7
commit 9fdaa69852
  1. 5
      libs/universal-dapp.js

@ -134,8 +134,9 @@ UniversalDApp.prototype.getInstanceInterface = function (contract, address, $tar
$events = $('<div class="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();

Loading…
Cancel
Save