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
bc5347ec
Commit
bc5347ec
authored
Feb 08, 2018
by
Iuri Matias
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
simplify queryValue; remove one level of complexity
parent
0d78a7d1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
6 deletions
+5
-6
universal-dapp.js
src/universal-dapp.js
+5
-6
No files found.
src/universal-dapp.js
View file @
bc5347ec
...
...
@@ -215,13 +215,12 @@ UniversalDApp.prototype.runTx = function (args, cb) {
if
(
args
.
value
)
{
return
next
(
null
,
args
.
value
,
gasLimit
)
}
if
(
args
.
useCall
)
return
next
(
null
,
0
,
gasLimit
)
if
(
self
.
transactionContextAPI
.
getValue
)
{
self
.
transactionContextAPI
.
getValue
(
function
(
err
,
value
)
{
next
(
err
,
value
,
gasLimit
)
})
if
(
args
.
useCall
||
!
self
.
transactionContextAPI
.
getValue
)
{
return
next
(
null
,
0
,
gasLimit
)
}
next
(
null
,
0
,
gasLimit
)
self
.
transactionContextAPI
.
getValue
(
function
(
err
,
value
)
{
next
(
err
,
value
,
gasLimit
)
})
},
function
getAccount
(
value
,
gasLimit
,
next
)
{
if
(
args
.
from
)
{
...
...
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