Skip to content

mobile: fixed FilterLogs#15418

Merged
fjl merged 2 commits into
ethereum:masterfrom
MobileUpLLC:master
Nov 6, 2017
Merged

mobile: fixed FilterLogs#15418
fjl merged 2 commits into
ethereum:masterfrom
MobileUpLLC:master

Conversation

@evgen-povt
Copy link
Copy Markdown
Contributor

It used to write a pointer to a local variable,
that led to fill a result array with the latest log

It used to write a pointer to a local variable,
that led to fill a result array with the latest log
Comment thread mobile/ethclient.go Outdated
res := make([]*types.Log, len(rawLogs))
for i, log := range rawLogs {
res[i] = &log
for i, _ := range rawLogs {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 but why to keep blank identifier?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not a go developer and didn't know that return parameters are optional.
Removed it and the code is compiled.
I'll update the PR soon.

removed the unnecessary variable
@fjl fjl merged commit bfdc0fa into ethereum:master Nov 6, 2017
@karalabe karalabe added this to the 1.7.3 milestone Nov 9, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants