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
e95b42b4
Unverified
Commit
e95b42b4
authored
Apr 30, 2018
by
yann300
Committed by
GitHub
Apr 30, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #782 from ethereum/fixEvent
prepend hex value with 0x
parents
b76e702b
92071ff8
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
7 deletions
+4
-7
eventsDecoder.js
remix-lib/src/execution/eventsDecoder.js
+1
-4
web3VmProvider.js
remix-lib/src/web3Provider/web3VmProvider.js
+3
-3
No files found.
remix-lib/src/execution/eventsDecoder.js
View file @
e95b42b4
...
@@ -73,10 +73,7 @@ class EventsDecoder {
...
@@ -73,10 +73,7 @@ class EventsDecoder {
var
topicId
=
log
.
topics
[
0
]
var
topicId
=
log
.
topics
[
0
]
var
abi
=
this
.
_event
(
topicId
.
replace
(
'0x'
,
''
),
eventsABI
)
var
abi
=
this
.
_event
(
topicId
.
replace
(
'0x'
,
''
),
eventsABI
)
if
(
abi
)
{
if
(
abi
)
{
var
topics
=
log
.
topics
.
map
((
value
)
=>
{
events
.
push
({
from
:
log
.
address
,
topic
:
topicId
,
event
:
abi
.
event
,
args
:
abi
.
object
.
parse
(
log
.
topics
,
log
.
data
)
})
return
value
.
indexOf
(
'0x'
)
===
0
?
value
:
'0x'
+
value
})
events
.
push
({
from
:
log
.
address
,
topic
:
topicId
,
event
:
abi
.
event
,
args
:
abi
.
object
.
parse
(
topics
,
'0x'
+
log
.
data
)
})
}
else
{
}
else
{
events
.
push
({
from
:
log
.
address
,
data
:
log
.
data
,
topics
:
log
.
topics
})
events
.
push
({
from
:
log
.
address
,
data
:
log
.
data
,
topics
:
log
.
topics
})
}
}
...
...
remix-lib/src/web3Provider/web3VmProvider.js
View file @
e95b42b4
...
@@ -108,14 +108,14 @@ web3VmProvider.prototype.txProcessed = function (self, data) {
...
@@ -108,14 +108,14 @@ web3VmProvider.prototype.txProcessed = function (self, data) {
var
topics
=
[]
var
topics
=
[]
if
(
log
[
1
].
length
>
0
)
{
if
(
log
[
1
].
length
>
0
)
{
for
(
var
k
in
log
[
1
])
{
for
(
var
k
in
log
[
1
])
{
topics
.
push
(
log
[
1
][
k
].
toString
(
'hex'
))
topics
.
push
(
'0x'
+
log
[
1
][
k
].
toString
(
'hex'
))
}
}
}
else
{
}
else
{
topics
.
push
(
'0x'
)
topics
.
push
(
'0x'
)
}
}
logs
.
push
({
logs
.
push
({
address
:
log
[
0
].
toString
(
'hex'
),
address
:
'0x'
+
log
[
0
].
toString
(
'hex'
),
data
:
log
[
2
].
toString
(
'hex'
),
data
:
'0x'
+
log
[
2
].
toString
(
'hex'
),
topics
:
topics
,
topics
:
topics
,
rawVMResponse
:
log
rawVMResponse
:
log
})
})
...
...
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