aboutsummaryrefslogtreecommitdiffstats
path: root/dist/ethereum.js
diff options
context:
space:
mode:
authorMarek Kotewicz <marek.kotewicz@gmail.com>2015-01-22 22:33:47 +0800
committerMarek Kotewicz <marek.kotewicz@gmail.com>2015-01-22 22:33:47 +0800
commit13f39afbdd3e09a106bf5266cd7751173906e84d (patch)
tree25c86238f4944acd5240f224dd95276559a2759b /dist/ethereum.js
parent6c4432d417cc79724f45e8033ac3710af10b3a3d (diff)
parent3073511e30e4df18c3ea5b7f71a4ee9c9175b02b (diff)
downloadgo-tangerine-13f39afbdd3e09a106bf5266cd7751173906e84d.tar
go-tangerine-13f39afbdd3e09a106bf5266cd7751173906e84d.tar.gz
go-tangerine-13f39afbdd3e09a106bf5266cd7751173906e84d.tar.bz2
go-tangerine-13f39afbdd3e09a106bf5266cd7751173906e84d.tar.lz
go-tangerine-13f39afbdd3e09a106bf5266cd7751173906e84d.tar.xz
go-tangerine-13f39afbdd3e09a106bf5266cd7751173906e84d.tar.zst
go-tangerine-13f39afbdd3e09a106bf5266cd7751173906e84d.zip
Merge commit '93fa6855afad7a7eb86e49efe384372a6060da35' into natspec
Diffstat (limited to 'dist/ethereum.js')
-rw-r--r--dist/ethereum.js22
1 files changed, 12 insertions, 10 deletions
diff --git a/dist/ethereum.js b/dist/ethereum.js
index a4c68d486..57962960c 100644
--- a/dist/ethereum.js
+++ b/dist/ethereum.js
@@ -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);
};