Commit 9fdaa698 authored by d11e9's avatar d11e9

woop getting vm logs

parent b0d2e867
...@@ -134,8 +134,9 @@ UniversalDApp.prototype.getInstanceInterface = function (contract, address, $tar ...@@ -134,8 +134,9 @@ UniversalDApp.prototype.getInstanceInterface = function (contract, address, $tar
$events = $('<div class="events"/>'); $events = $('<div class="events"/>');
if (self.options.vm){ if (self.options.vm){
self.vm.on('step', function(){console.log("step: ", arguments )}) self.vm.on('afterTx', function(response){
self.vm.on('afterTx', function(){ console.log("afterTx: ", arguments )}) // TODO: parse/use reponse.vm.logs
});
} else { } else {
var jsInterface = web3.eth.contract(abi).at(address) var jsInterface = web3.eth.contract(abi).at(address)
var eventFilter = jsInterface.allEvents(); var eventFilter = jsInterface.allEvents();
......
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