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
cf99d6aa
Unverified
Commit
cf99d6aa
authored
Jun 29, 2021
by
bunsenstraat
Committed by
GitHub
Jun 29, 2021
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1265 from ethereum/logfix
fix logger bug
parents
9909c1d2
886b847b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
3 deletions
+18
-3
txLogger.js
apps/remix-ide/src/app/ui/txLogger.js
+18
-3
No files found.
apps/remix-ide/src/app/ui/txLogger.js
View file @
cf99d6aa
...
...
@@ -354,6 +354,17 @@ module.exports = TxLogger
// helpers
function
isDescendant
(
parent
,
child
)
{
var
node
=
child
.
parentNode
while
(
node
!=
null
)
{
if
(
node
===
parent
)
{
return
true
}
node
=
node
.
parentNode
}
return
false
}
function
txDetails
(
e
,
tx
,
data
,
obj
)
{
const
from
=
obj
.
from
const
to
=
obj
.
to
...
...
@@ -368,9 +379,13 @@ function txDetails (e, tx, data, obj) {
}
else
break
}
let
table
=
blockElement
.
querySelector
(
`#
${
tx
.
id
}
[class^="txTable"]`
)
const
log
=
blockElement
.
querySelector
(
`#
${
tx
.
id
}
[class^='log']`
)
const
arrow
=
blockElement
.
querySelector
(
`#
${
tx
.
id
}
[class^='arrow']`
)
const
tables
=
blockElement
.
querySelectorAll
(
`#
${
tx
.
id
}
[class^="txTable"]`
)
const
logs
=
blockElement
.
querySelectorAll
(
`#
${
tx
.
id
}
[class^='log']`
)
const
arrows
=
blockElement
.
querySelectorAll
(
`#
${
tx
.
id
}
[class^='arrow']`
)
let
table
=
[...
tables
].
filter
((
t
)
=>
isDescendant
(
tx
,
t
))[
0
]
const
log
=
[...
logs
].
filter
((
t
)
=>
isDescendant
(
tx
,
t
))[
0
]
const
arrow
=
[...
arrows
].
filter
((
t
)
=>
isDescendant
(
tx
,
t
))[
0
]
if
(
table
&&
table
.
parentNode
)
{
tx
.
removeChild
(
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