aboutsummaryrefslogtreecommitdiffstats
path: root/lib/contract.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/contract.js')
-rw-r--r--lib/contract.js4
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