diff options
author | Gav Wood <i@gavwood.com> | 2015-01-25 10:09:35 +0800 |
---|---|---|
committer | Gav Wood <i@gavwood.com> | 2015-01-25 10:09:35 +0800 |
commit | fb34c6c7b92b4dcb027c87dc9ca05c0f0c6457cf (patch) | |
tree | de42569c4c27479a0f808f36199985427b06de3b /lib | |
parent | 7869294a26b00983df6fb64fab6a11e4c11c38ff (diff) | |
download | dexon-fb34c6c7b92b4dcb027c87dc9ca05c0f0c6457cf.tar dexon-fb34c6c7b92b4dcb027c87dc9ca05c0f0c6457cf.tar.gz dexon-fb34c6c7b92b4dcb027c87dc9ca05c0f0c6457cf.tar.bz2 dexon-fb34c6c7b92b4dcb027c87dc9ca05c0f0c6457cf.tar.lz dexon-fb34c6c7b92b4dcb027c87dc9ca05c0f0c6457cf.tar.xz dexon-fb34c6c7b92b4dcb027c87dc9ca05c0f0c6457cf.tar.zst dexon-fb34c6c7b92b4dcb027c87dc9ca05c0f0c6457cf.zip |
Auto select call or transact depending on constness.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/contract.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/contract.js b/lib/contract.js index b05a6cc90..ecabc87fa 100644 --- a/lib/contract.js +++ b/lib/contract.js @@ -89,11 +89,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 |