Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
baas-ide
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
guxukai
baas-ide
Commits
40c7147c
Commit
40c7147c
authored
Sep 15, 2016
by
Alex Beregszaszi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
udapp: Rename isCall to useCall in runTx()
parent
99b812b1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
universal-dapp.js
src/universal-dapp.js
+3
-3
No files found.
src/universal-dapp.js
View file @
40c7147c
...
@@ -566,7 +566,7 @@ UniversalDApp.prototype.getCallButton = function (args) {
...
@@ -566,7 +566,7 @@ UniversalDApp.prototype.getCallButton = function (args) {
};
};
var
decoded
;
var
decoded
;
self
.
runTx
({
to
:
args
.
address
,
data
:
data
,
is
Call
:
args
.
abi
.
constant
&&
!
isConstructor
},
function
(
err
,
result
)
{
self
.
runTx
({
to
:
args
.
address
,
data
:
data
,
use
Call
:
args
.
abi
.
constant
&&
!
isConstructor
},
function
(
err
,
result
)
{
if
(
err
)
{
if
(
err
)
{
replaceOutput
(
$result
,
$
(
'<span/>'
).
text
(
err
).
addClass
(
'error'
));
replaceOutput
(
$result
,
$
(
'<span/>'
).
text
(
err
).
addClass
(
'error'
));
// VM only
// VM only
...
@@ -675,7 +675,7 @@ UniversalDApp.prototype.deployLibrary = function (contractName, cb) {
...
@@ -675,7 +675,7 @@ UniversalDApp.prototype.deployLibrary = function (contractName, cb) {
else
self
.
deployLibrary
(
contractName
,
cb
);
else
self
.
deployLibrary
(
contractName
,
cb
);
});
});
}
else
{
}
else
{
self
.
runTx
({
data
:
bytecode
,
is
Call
:
false
},
function
(
err
,
result
)
{
self
.
runTx
({
data
:
bytecode
,
use
Call
:
false
},
function
(
err
,
result
)
{
if
(
err
)
{
if
(
err
)
{
return
cb
(
err
);
return
cb
(
err
);
}
}
...
@@ -736,7 +736,7 @@ UniversalDApp.prototype.runTx = function (args, cb) {
...
@@ -736,7 +736,7 @@ UniversalDApp.prototype.runTx = function (args, cb) {
data
:
data
,
data
:
data
,
value
:
value
value
:
value
};
};
if
(
args
.
is
Call
)
{
if
(
args
.
use
Call
)
{
tx
.
gas
=
gasLimit
;
tx
.
gas
=
gasLimit
;
self
.
web3
.
eth
.
call
(
tx
,
cb
);
self
.
web3
.
eth
.
call
(
tx
,
cb
);
}
else
{
}
else
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment