not parsing transaction output
This commit is contained in:
parent
e45db42e94
commit
3073511e30
22
dist/ethereum.js
vendored
22
dist/ethereum.js
vendored
@ -487,23 +487,25 @@ var contract = function (address, desc) {
|
|||||||
var options = result._options || {};
|
var options = result._options || {};
|
||||||
options.to = address;
|
options.to = address;
|
||||||
options.data = signature + parsed;
|
options.data = signature + parsed;
|
||||||
|
|
||||||
|
var isTransact = result._isTransact;
|
||||||
|
|
||||||
|
// reset
|
||||||
|
result._options = {};
|
||||||
|
result._isTransact = false;
|
||||||
|
|
||||||
var output = "";
|
if (isTransact) {
|
||||||
if (result._isTransact) {
|
|
||||||
// it's used byt natspec.js
|
// it's used byt natspec.js
|
||||||
// TODO: figure out better way to solve this
|
// TODO: figure out better way to solve this
|
||||||
web3._currentContractAbi = desc;
|
web3._currentContractAbi = desc;
|
||||||
web3._currentContractAddress = address;
|
web3._currentContractAddress = address;
|
||||||
|
|
||||||
output = web3.eth.transact(options);
|
// transactions do not have any output, cause we do not know, when they will be processed
|
||||||
} else {
|
web3.eth.transact(options);
|
||||||
output = web3.eth.call(options);
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// reset
|
var output = web3.eth.call(options);
|
||||||
result._options = {};
|
|
||||||
result._isTransact = false;
|
|
||||||
|
|
||||||
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
@ -76,23 +76,25 @@ var contract = function (address, desc) {
|
|||||||
var options = result._options || {};
|
var options = result._options || {};
|
||||||
options.to = address;
|
options.to = address;
|
||||||
options.data = signature + parsed;
|
options.data = signature + parsed;
|
||||||
|
|
||||||
|
var isTransact = result._isTransact;
|
||||||
|
|
||||||
|
// reset
|
||||||
|
result._options = {};
|
||||||
|
result._isTransact = false;
|
||||||
|
|
||||||
var output = "";
|
if (isTransact) {
|
||||||
if (result._isTransact) {
|
|
||||||
// it's used byt natspec.js
|
// it's used byt natspec.js
|
||||||
// TODO: figure out better way to solve this
|
// TODO: figure out better way to solve this
|
||||||
web3._currentContractAbi = desc;
|
web3._currentContractAbi = desc;
|
||||||
web3._currentContractAddress = address;
|
web3._currentContractAddress = address;
|
||||||
|
|
||||||
output = web3.eth.transact(options);
|
// transactions do not have any output, cause we do not know, when they will be processed
|
||||||
} else {
|
web3.eth.transact(options);
|
||||||
output = web3.eth.call(options);
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// reset
|
var output = web3.eth.call(options);
|
||||||
result._options = {};
|
|
||||||
result._isTransact = false;
|
|
||||||
|
|
||||||
return outputParser[displayName][typeName](output);
|
return outputParser[displayName][typeName](output);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user