aboutsummaryrefslogtreecommitdiffstats
path: root/dist/ethereum.js
diff options
context:
space:
mode:
authorGav Wood <i@gavwood.com>2015-01-25 10:09:35 +0800
committerGav Wood <i@gavwood.com>2015-01-25 10:09:35 +0800
commitfb34c6c7b92b4dcb027c87dc9ca05c0f0c6457cf (patch)
treede42569c4c27479a0f808f36199985427b06de3b /dist/ethereum.js
parent7869294a26b00983df6fb64fab6a11e4c11c38ff (diff)
downloadgo-tangerine-fb34c6c7b92b4dcb027c87dc9ca05c0f0c6457cf.tar
go-tangerine-fb34c6c7b92b4dcb027c87dc9ca05c0f0c6457cf.tar.gz
go-tangerine-fb34c6c7b92b4dcb027c87dc9ca05c0f0c6457cf.tar.bz2
go-tangerine-fb34c6c7b92b4dcb027c87dc9ca05c0f0c6457cf.tar.lz
go-tangerine-fb34c6c7b92b4dcb027c87dc9ca05c0f0c6457cf.tar.xz
go-tangerine-fb34c6c7b92b4dcb027c87dc9ca05c0f0c6457cf.tar.zst
go-tangerine-fb34c6c7b92b4dcb027c87dc9ca05c0f0c6457cf.zip
Auto select call or transact depending on constness.
Diffstat (limited to 'dist/ethereum.js')
-rw-r--r--dist/ethereum.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/dist/ethereum.js b/dist/ethereum.js
index 1b0aa5e73..f3d53ed30 100644
--- a/dist/ethereum.js
+++ b/dist/ethereum.js
@@ -500,11 +500,11 @@ var contract = function (address, desc) {
options.to = address;
options.data = signature + parsed;
- var isTransact = result._isTransact;
+ var isTransact = result._isTransact === true || (result._isTransact !== false && !method.constant);
// reset
result._options = {};
- result._isTransact = false;
+ result._isTransact = null;
if (isTransact) {
// it's used byt natspec.js