Commit e42c3e74 authored by chriseth's avatar chriseth

Merge pull request #128 from lastperson/patch-1

Fix runTx to work with real eth nodes
parents cb7961fb 06b04135
...@@ -290,7 +290,7 @@ UniversalDApp.prototype.getCallButton = function(args) { ...@@ -290,7 +290,7 @@ UniversalDApp.prototype.getCallButton = function(args) {
self.runTx(data, args, function(err, result) { self.runTx(data, args, function(err, result) {
if (err) { if (err) {
replaceOutput($result, $('<span/>').text(err).addClass('error')); replaceOutput($result, $('<span/>').text(err).addClass('error'));
} else if (result.vm.exception && result.vm.exceptionError) { } else if (self.options.vm && result.vm.exception && result.vm.exceptionError) {
replaceOutput($result, $('<span/>').text('VM Exception: ' + result.vm.exceptionError).addClass('error')); replaceOutput($result, $('<span/>').text('VM Exception: ' + result.vm.exceptionError).addClass('error'));
} else if (self.options.vm && result.vm.return === undefined) { } else if (self.options.vm && result.vm.return === undefined) {
replaceOutput($result, $('<span/>').text('Exception during execution.').addClass('error')); replaceOutput($result, $('<span/>').text('Exception during execution.').addClass('error'));
......
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