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
27d00358
Commit
27d00358
authored
Oct 19, 2016
by
yann300
Committed by
GitHub
Oct 19, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #123 from yann300/asyncCall
Replace sync by async call
parents
99e9baae
bdb590d6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
4 deletions
+15
-4
TxBrowser.js
src/ui/TxBrowser.js
+15
-4
No files found.
src/ui/TxBrowser.js
View file @
27d00358
...
...
@@ -44,17 +44,28 @@ TxBrowser.prototype.submit = function () {
if
(
!
this
.
txNumber
)
{
return
}
this
.
trigger
(
'newTxLoading'
,
[
this
.
blockNumber
,
this
.
txNumber
,
tx
])
var
tx
this
.
trigger
(
'newTxLoading'
,
[
this
.
blockNumber
,
this
.
txNumber
])
try
{
var
self
=
this
if
(
this
.
txNumber
.
indexOf
(
'0x'
)
!==
-
1
)
{
tx
=
util
.
web3
.
eth
.
getTransaction
(
this
.
txNumber
)
util
.
web3
.
eth
.
getTransaction
(
this
.
txNumber
,
function
(
error
,
result
)
{
self
.
update
(
error
,
result
)
})
}
else
{
tx
=
util
.
web3
.
eth
.
getTransactionFromBlock
(
this
.
blockNumber
,
this
.
txNumber
)
util
.
web3
.
eth
.
getTransactionFromBlock
(
this
.
blockNumber
,
this
.
txNumber
,
function
(
error
,
result
)
{
self
.
update
(
error
,
result
)
})
}
}
catch
(
e
)
{
console
.
log
(
e
)
}
}
TxBrowser
.
prototype
.
update
=
function
(
error
,
tx
)
{
if
(
error
)
{
console
.
log
(
error
)
return
}
var
info
=
{}
if
(
tx
)
{
if
(
!
tx
.
to
)
{
...
...
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