Merge commit '93fa6855afad7a7eb86e49efe384372a6060da35' into natspec

pull/272/merge
Marek Kotewicz 10 years ago
commit 13f39afbdd
  1. 20
      dist/ethereum.js
  2. 4
      dist/ethereum.js.map
  3. 2
      dist/ethereum.min.js
  4. 20
      lib/contract.js

20
dist/ethereum.js vendored

@ -488,22 +488,24 @@ var contract = function (address, desc) {
options.to = address;
options.data = signature + parsed;
var output = "";
if (result._isTransact) {
var isTransact = result._isTransact;
// reset
result._options = {};
result._isTransact = false;
if (isTransact) {
// it's used byt natspec.js
// TODO: figure out better way to solve this
web3._currentContractAbi = desc;
web3._currentContractAddress = address;
output = web3.eth.transact(options);
} else {
output = web3.eth.call(options);
// transactions do not have any output, cause we do not know, when they will be processed
web3.eth.transact(options);
return;
}
// reset
result._options = {};
result._isTransact = false;
var output = web3.eth.call(options);
return outputParser[displayName][typeName](output);
};

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

@ -77,22 +77,24 @@ var contract = function (address, desc) {
options.to = address;
options.data = signature + parsed;
var output = "";
if (result._isTransact) {
var isTransact = result._isTransact;
// reset
result._options = {};
result._isTransact = false;
if (isTransact) {
// it's used byt natspec.js
// TODO: figure out better way to solve this
web3._currentContractAbi = desc;
web3._currentContractAddress = address;
output = web3.eth.transact(options);
} else {
output = web3.eth.call(options);
// transactions do not have any output, cause we do not know, when they will be processed
web3.eth.transact(options);
return;
}
// reset
result._options = {};
result._isTransact = false;
var output = web3.eth.call(options);
return outputParser[displayName][typeName](output);
};

Loading…
Cancel
Save