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
84a30d55
Commit
84a30d55
authored
Sep 04, 2017
by
ninabreznik
Committed by
yann300
Sep 08, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add logs to known TX
parent
ec564a5d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
5 deletions
+16
-5
txLogger.js
src/app/execution/txLogger.js
+16
-5
No files found.
src/app/execution/txLogger.js
View file @
84a30d55
...
...
@@ -110,7 +110,7 @@ function renderKnownTransaction (self, data) {
to
=
data
.
tx
.
to
}
else
if
(
data
.
tx
.
hash
)
{
// call (constructor of function call)
var
name
=
data
.
resolvedData
.
contractName
+
'.'
+
data
.
resolvedData
.
fn
var
logs
=
','
+
data
.
logs
.
length
+
' logs'
var
logs
=
',
'
+
data
.
logs
.
length
+
' logs'
if
(
data
.
resolvedData
.
fn
===
'(constructor)'
)
{
to
=
name
+
logs
}
else
{
...
...
@@ -139,7 +139,7 @@ function renderKnownTransaction (self, data) {
tx
.
removeChild
(
table
)
}
else
{
table
=
createTable
({
from
,
to
,
val
:
data
.
tx
.
value
,
input
:
data
.
tx
.
input
,
hash
:
data
.
tx
.
hash
,
gas
:
data
.
tx
.
gas
from
,
to
,
val
:
data
.
tx
.
value
,
input
:
data
.
tx
.
input
,
hash
:
data
.
tx
.
hash
,
gas
:
data
.
tx
.
gas
,
logs
:
data
.
logs
})
tx
.
appendChild
(
table
)
}
...
...
@@ -226,7 +226,7 @@ function createTable (opts) {
var
input
=
opts
.
input
var
hash
=
opts
.
hash
var
gas
=
opts
.
gas
return
yo
`
var
table
=
yo
`
<table class="
${
css
.
txTable
}
" id="txTable">
<tr class="
${
css
.
tr
}
">
<td class="
${
css
.
td
}
">from</td>
...
...
@@ -241,8 +241,8 @@ function createTable (opts) {
<td class="
${
css
.
td
}
">
${
value
(
val
)}
wei</td>
</tr class="
${
css
.
tr
}
">
<tr class="
${
css
.
tr
}
">
<td class="
${
css
.
td
}
">
data
:</td>
<td class="
${
css
.
td
}
">
${
input
}
</td>
<td class="
${
css
.
td
}
">
input
:</td>
<td class="
${
css
.
td
}
">
${
helper
.
shortenHexData
(
input
)
}
</td>
</tr class="
${
css
.
tr
}
">
<tr class="
${
css
.
tr
}
">
<td class="
${
css
.
td
}
">hash:</td>
...
...
@@ -254,4 +254,15 @@ function createTable (opts) {
</tr class="
${
css
.
tr
}
">
</table>
`
if
(
opts
.
logs
)
{
var
logs
=
opts
.
logs
var
logs
=
yo
`
<tr class="
${
css
.
tr
}
">
<td class="
${
css
.
td
}
">logs:</td>
<td class="
${
css
.
td
}
">
${
logs
}
</td>
</tr class="
${
css
.
tr
}
">
`
table
.
appendChild
(
logs
)
}
return
table
}
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