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
b27ef515
Commit
b27ef515
authored
Sep 12, 2017
by
yann300
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add raw logs to details
parent
a7622d30
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
4 deletions
+6
-4
eventsDecoder.js
src/app/execution/eventsDecoder.js
+1
-1
txLogger.js
src/app/execution/txLogger.js
+5
-3
No files found.
src/app/execution/eventsDecoder.js
View file @
b27ef515
...
@@ -71,7 +71,7 @@ class EventsDecoder {
...
@@ -71,7 +71,7 @@ class EventsDecoder {
}
}
events
.
push
({
event
:
event
,
args
:
decoded
})
events
.
push
({
event
:
event
,
args
:
decoded
})
}
}
cb
(
null
,
events
)
cb
(
null
,
{
decoded
:
events
,
raw
:
logs
}
)
}
}
}
}
...
...
src/app/execution/txLogger.js
View file @
b27ef515
...
@@ -175,7 +175,7 @@ function renderKnownTransaction (self, data) {
...
@@ -175,7 +175,7 @@ function renderKnownTransaction (self, data) {
input
:
data
.
tx
.
input
,
input
:
data
.
tx
.
input
,
'decoded input'
:
data
.
resolvedData
&&
data
.
resolvedData
.
params
?
JSON
.
stringify
(
value
(
data
.
resolvedData
.
params
),
null
,
'
\
t'
)
:
' - '
,
'decoded input'
:
data
.
resolvedData
&&
data
.
resolvedData
.
params
?
JSON
.
stringify
(
value
(
data
.
resolvedData
.
params
),
null
,
'
\
t'
)
:
' - '
,
'decoded output'
:
data
.
resolvedData
&&
data
.
resolvedData
.
decodedReturnValue
?
JSON
.
stringify
(
value
(
data
.
resolvedData
.
decodedReturnValue
),
null
,
'
\
t'
)
:
' - '
,
'decoded output'
:
data
.
resolvedData
&&
data
.
resolvedData
.
decodedReturnValue
?
JSON
.
stringify
(
value
(
data
.
resolvedData
.
decodedReturnValue
),
null
,
'
\
t'
)
:
' - '
,
logs
:
JSON
.
stringify
(
data
.
logs
,
null
,
'
\
t'
)
||
'0'
,
logs
:
data
.
logs
,
val
:
data
.
tx
.
value
val
:
data
.
tx
.
value
})
})
tx
.
appendChild
(
table
)
tx
.
appendChild
(
table
)
...
@@ -240,7 +240,7 @@ function renderUnknownTransaction (self, data) {
...
@@ -240,7 +240,7 @@ function renderUnknownTransaction (self, data) {
input
:
data
.
tx
.
input
,
input
:
data
.
tx
.
input
,
hash
:
data
.
tx
.
hash
,
hash
:
data
.
tx
.
hash
,
gas
:
data
.
tx
.
gas
,
gas
:
data
.
tx
.
gas
,
logs
:
JSON
.
stringify
(
data
.
logs
)
||
'0'
logs
:
data
.
logs
})
})
tx
.
appendChild
(
table
)
tx
.
appendChild
(
table
)
}
}
...
@@ -384,7 +384,9 @@ function createTable (opts) {
...
@@ -384,7 +384,9 @@ function createTable (opts) {
var
logs
=
yo
`
var
logs
=
yo
`
<tr class="
${
css
.
tr
}
">
<tr class="
${
css
.
tr
}
">
<td class="
${
css
.
td
}
"> logs </td>
<td class="
${
css
.
td
}
"> logs </td>
<td class="
${
css
.
td
}
"><i class="fa fa-clipboard
${
css
.
clipboardCopy
}
" aria-hidden="true" onclick=
${
function
()
{
copy
(
opts
.
logs
||
'0'
)
}
} title='Copy to clipboard'></i>
${
opts
.
logs
||
'0'
}
</td>
<td class="
${
css
.
td
}
">
<i class="fa fa-clipboard
${
css
.
clipboardCopy
}
" aria-hidden="true" onclick=
${
function
()
{
copy
(
JSON
.
stringify
(
opts
.
logs
.
decoded
||
[],
null
,
'
\
t'
))
}
} title='Copy Logs to clipboard'></i>
<i class="fa fa-clipboard
${
css
.
clipboardCopy
}
" aria-hidden="true" onclick=
${
function
()
{
copy
(
JSON
.
stringify
(
opts
.
logs
.
raw
||
'0'
))
}
} title='Copy Raw Logs to clipboard'></i>
${
JSON
.
stringify
(
opts
.
logs
.
decoded
||
[],
null
,
'
\
t'
)}
</td>
</tr class="
${
css
.
tr
}
">
</tr class="
${
css
.
tr
}
">
`
`
if
(
opts
.
logs
)
table
.
appendChild
(
logs
)
if
(
opts
.
logs
)
table
.
appendChild
(
logs
)
...
...
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