forked from cerc-io/plugeth
Auto select call or transact depending on constness.
This commit is contained in:
parent
7869294a26
commit
fb34c6c7b9
4
dist/ethereum.js
vendored
4
dist/ethereum.js
vendored
@ -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
|
||||||
|
2
dist/ethereum.js.map
vendored
2
dist/ethereum.js.map
vendored
File diff suppressed because one or more lines are too long
2
dist/ethereum.min.js
vendored
2
dist/ethereum.min.js
vendored
File diff suppressed because one or more lines are too long
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user