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
34504f91
Unverified
Commit
34504f91
authored
Apr 26, 2018
by
yann300
Committed by
GitHub
Apr 26, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #778 from ethereum/yann300-patch-6
Update eventsDecoder.js
parents
046b62a7
03b1a268
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
eventsDecoder.js
remix-lib/src/execution/eventsDecoder.js
+2
-2
No files found.
remix-lib/src/execution/eventsDecoder.js
View file @
34504f91
...
...
@@ -76,9 +76,9 @@ class EventsDecoder {
var
topics
=
log
.
topics
.
map
((
value
)
=>
{
return
value
.
indexOf
(
'0x'
)
===
0
?
value
:
'0x'
+
value
})
events
.
push
({
topic
:
topicId
,
event
:
abi
.
event
,
args
:
abi
.
object
.
parse
(
topics
,
'0x'
+
log
.
data
)
})
events
.
push
({
from
:
log
.
address
,
topic
:
topicId
,
event
:
abi
.
event
,
args
:
abi
.
object
.
parse
(
topics
,
'0x'
+
log
.
data
)
})
}
else
{
events
.
push
({
data
:
log
.
data
,
topics
:
log
.
topics
})
events
.
push
({
from
:
log
.
address
,
data
:
log
.
data
,
topics
:
log
.
topics
})
}
}
cb
(
null
,
{
decoded
:
events
,
raw
:
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