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
73d9a3a0
Commit
73d9a3a0
authored
Sep 15, 2017
by
yann300
Committed by
GitHub
Sep 15, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #571 from ethereum/fixEvetn
support indexed event in web3vmProvider
parents
06574702
b29ef4e8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletion
+9
-1
web3VmProvider.js
src/web3Provider/web3VmProvider.js
+9
-1
No files found.
src/web3Provider/web3VmProvider.js
View file @
73d9a3a0
...
@@ -102,9 +102,17 @@ web3VmProvider.prototype.txProcessed = function (self, data) {
...
@@ -102,9 +102,17 @@ web3VmProvider.prototype.txProcessed = function (self, data) {
var
logs
=
[]
var
logs
=
[]
for
(
var
l
in
data
.
vm
.
logs
)
{
for
(
var
l
in
data
.
vm
.
logs
)
{
var
log
=
data
.
vm
.
logs
[
l
]
var
log
=
data
.
vm
.
logs
[
l
]
var
topics
=
[]
if
(
log
[
1
].
length
>
0
)
{
for
(
var
k
in
log
[
1
])
{
topics
.
push
(
log
[
1
][
k
].
toString
(
'hex'
))
}
}
else
{
topics
.
push
(
'0x'
)
}
logs
.
push
({
logs
.
push
({
data
:
log
[
2
].
toString
(
'hex'
),
data
:
log
[
2
].
toString
(
'hex'
),
topics
:
log
[
1
].
length
>
0
?
[
log
[
1
][
0
].
toString
(
'hex'
)]
:
[
'0x'
]
,
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