Commit 3073511e authored by Marek Kotewicz's avatar Marek Kotewicz

not parsing transaction output

parent e45db42e
......@@ -487,23 +487,25 @@ var contract = function (address, desc) {
var options = result._options || {};
options.to = address;
options.data = signature + parsed;
var isTransact = result._isTransact;
// reset
result._options = {};
result._isTransact = false;
var output = "";
if (result._isTransact) {
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);
};
......
This diff is collapsed.
This diff is collapsed.
......@@ -76,23 +76,25 @@ var contract = function (address, desc) {
var options = result._options || {};
options.to = address;
options.data = signature + parsed;
var isTransact = result._isTransact;
// reset
result._options = {};
result._isTransact = false;
var output = "";
if (result._isTransact) {
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);
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment