Auto select call or transact depending on constness.
This commit is contained in:
parent
7869294a26
commit
fb34c6c7b9
|
@ -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
|
||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue