|
|
@ -568,7 +568,7 @@ UniversalDApp.prototype.getCallButton = function (args) { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
var decoded |
|
|
|
var decoded |
|
|
|
self.runTx({ to: args.address, data: data, useCall: args.abi.constant && !isConstructor }, function (err, txResult) { |
|
|
|
self.runTx({ to: args.address, data: data, useCall: lookupOnly }, function (err, txResult) { |
|
|
|
if (!txResult) { |
|
|
|
if (!txResult) { |
|
|
|
replaceOutput($result, $('<span/>').text('callback contain no result ' + err).addClass('error')) |
|
|
|
replaceOutput($result, $('<span/>').text('callback contain no result ' + err).addClass('error')) |
|
|
|
return |
|
|
|
return |
|
|
@ -597,12 +597,12 @@ UniversalDApp.prototype.getCallButton = function (args) { |
|
|
|
if (decoded) { |
|
|
|
if (decoded) { |
|
|
|
$result.append(decoded) |
|
|
|
$result.append(decoded) |
|
|
|
} |
|
|
|
} |
|
|
|
if (args.abi.constant) { |
|
|
|
if (lookupOnly) { |
|
|
|
$result.append(getDebugCall(txResult)) |
|
|
|
$result.append(getDebugCall(txResult)) |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
$result.append(getDebugTransaction(txResult)) |
|
|
|
$result.append(getDebugTransaction(txResult)) |
|
|
|
} |
|
|
|
} |
|
|
|
} else if (args.abi.constant && !isConstructor) { |
|
|
|
} else if (lookupOnly) { |
|
|
|
clearOutput($result) |
|
|
|
clearOutput($result) |
|
|
|
$result.append(getReturnOutput(result)).append(getGasUsedOutput({})) |
|
|
|
$result.append(getReturnOutput(result)).append(getGasUsedOutput({})) |
|
|
|
|
|
|
|
|
|
|
@ -639,7 +639,7 @@ UniversalDApp.prototype.getCallButton = function (args) { |
|
|
|
|
|
|
|
|
|
|
|
var $contractProperty = $('<div class="contractProperty"/>') |
|
|
|
var $contractProperty = $('<div class="contractProperty"/>') |
|
|
|
$contractProperty |
|
|
|
$contractProperty |
|
|
|
.toggleClass('constant', !isConstructor && args.abi.constant) |
|
|
|
.toggleClass('constant', lookupOnly) |
|
|
|
.toggleClass('hasArgs', args.abi.inputs && args.abi.inputs.length > 0) |
|
|
|
.toggleClass('hasArgs', args.abi.inputs && args.abi.inputs.length > 0) |
|
|
|
.toggleClass('constructor', isConstructor) |
|
|
|
.toggleClass('constructor', isConstructor) |
|
|
|
.append(button) |
|
|
|
.append(button) |
|
|
|