Merge commit '93fa6855afad7a7eb86e49efe384372a6060da35' into natspec
This commit is contained in:
commit
13f39afbdd
24
dist/ethereum.js
vendored
24
dist/ethereum.js
vendored
@ -488,22 +488,24 @@ var contract = function (address, desc) {
|
|||||||
options.to = address;
|
options.to = address;
|
||||||
options.data = signature + parsed;
|
options.data = signature + parsed;
|
||||||
|
|
||||||
var output = "";
|
var isTransact = result._isTransact;
|
||||||
if (result._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);
|
|
||||||
}
|
|
||||||
|
|
||||||
// reset
|
// reset
|
||||||
result._options = {};
|
result._options = {};
|
||||||
result._isTransact = false;
|
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;
|
||||||
|
|
||||||
|
// transactions do not have any output, cause we do not know, when they will be processed
|
||||||
|
web3.eth.transact(options);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
var output = web3.eth.call(options);
|
||||||
return outputParser[displayName][typeName](output);
|
return outputParser[displayName][typeName](output);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
4
dist/ethereum.js.map
vendored
4
dist/ethereum.js.map
vendored
File diff suppressed because one or more lines are too long
2
dist/ethereum.min.js
vendored
2
dist/ethereum.min.js
vendored
File diff suppressed because one or more lines are too long
@ -77,22 +77,24 @@ var contract = function (address, desc) {
|
|||||||
options.to = address;
|
options.to = address;
|
||||||
options.data = signature + parsed;
|
options.data = signature + parsed;
|
||||||
|
|
||||||
var output = "";
|
var isTransact = result._isTransact;
|
||||||
if (result._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);
|
|
||||||
}
|
|
||||||
|
|
||||||
// reset
|
// reset
|
||||||
result._options = {};
|
result._options = {};
|
||||||
result._isTransact = false;
|
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;
|
||||||
|
|
||||||
|
// transactions do not have any output, cause we do not know, when they will be processed
|
||||||
|
web3.eth.transact(options);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
var output = web3.eth.call(options);
|
||||||
return outputParser[displayName][typeName](output);
|
return outputParser[displayName][typeName](output);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user