Auto select call or transact depending on constness.

This commit is contained in:
Gav Wood 2015-01-24 18:09:35 -08:00
parent 7869294a26
commit fb34c6c7b9
4 changed files with 6 additions and 6 deletions

4
dist/ethereum.js vendored
View File

@ -500,11 +500,11 @@ var contract = function (address, desc) {
options.to = address; options.to = address;
options.data = signature + parsed; options.data = signature + parsed;
var isTransact = result._isTransact; var isTransact = result._isTransact === true || (result._isTransact !== false && !method.constant);
// reset // reset
result._options = {}; result._options = {};
result._isTransact = false; result._isTransact = null;
if (isTransact) { if (isTransact) {
// it's used byt natspec.js // it's used byt natspec.js

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -89,11 +89,11 @@ var contract = function (address, desc) {
options.to = address; options.to = address;
options.data = signature + parsed; options.data = signature + parsed;
var isTransact = result._isTransact; var isTransact = result._isTransact === true || (result._isTransact !== false && !method.constant);
// reset // reset
result._options = {}; result._options = {};
result._isTransact = false; result._isTransact = null;
if (isTransact) { if (isTransact) {
// it's used byt natspec.js // it's used byt natspec.js