|
|
@ -566,7 +566,7 @@ UniversalDApp.prototype.getCallButton = function (args) { |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
var decoded; |
|
|
|
var decoded; |
|
|
|
self.runTx({ to: args.address, data: data, isCall: args.abi.constant && !isConstructor }, function (err, result) { |
|
|
|
self.runTx({ to: args.address, data: data, useCall: args.abi.constant && !isConstructor }, function (err, result) { |
|
|
|
if (err) { |
|
|
|
if (err) { |
|
|
|
replaceOutput($result, $('<span/>').text(err).addClass('error')); |
|
|
|
replaceOutput($result, $('<span/>').text(err).addClass('error')); |
|
|
|
// VM only
|
|
|
|
// VM only
|
|
|
@ -675,7 +675,7 @@ UniversalDApp.prototype.deployLibrary = function (contractName, cb) { |
|
|
|
else self.deployLibrary(contractName, cb); |
|
|
|
else self.deployLibrary(contractName, cb); |
|
|
|
}); |
|
|
|
}); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
self.runTx({ data: bytecode, isCall: false }, function (err, result) { |
|
|
|
self.runTx({ data: bytecode, useCall: false }, function (err, result) { |
|
|
|
if (err) { |
|
|
|
if (err) { |
|
|
|
return cb(err); |
|
|
|
return cb(err); |
|
|
|
} |
|
|
|
} |
|
|
@ -736,7 +736,7 @@ UniversalDApp.prototype.runTx = function (args, cb) { |
|
|
|
data: data, |
|
|
|
data: data, |
|
|
|
value: value |
|
|
|
value: value |
|
|
|
}; |
|
|
|
}; |
|
|
|
if (args.isCall) { |
|
|
|
if (args.useCall) { |
|
|
|
tx.gas = gasLimit; |
|
|
|
tx.gas = gasLimit; |
|
|
|
self.web3.eth.call(tx, cb); |
|
|
|
self.web3.eth.call(tx, cb); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|