Skip to content
This repository has been archived by the owner on Apr 22, 2024. It is now read-only.

Use hex strings for filter block handler indices #155 #156

Merged
merged 1 commit into from
May 31, 2017

Conversation

chejazi
Copy link
Contributor

@chejazi chejazi commented May 31, 2017

Using the numeric index self.filterIndex results in problems
later on when we try to uninstall handler.

Using the numeric index `self.filterIndex` results in problems
later on when we try to uninstall handler.
var hexFilterIndex = intToHex(self.filterIndex)
self.asyncBlockHandlers[hexFilterIndex] = blockHandler
Copy link
Contributor

Choose a reason for hiding this comment

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

Ahh, now I see what you meant!

Copy link
Contributor

@danfinlay danfinlay left a comment

Choose a reason for hiding this comment

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

If the tests pass, this looks good to me.

@danfinlay
Copy link
Contributor

Oh right, our CI doesn't run foreign branch PRs. I'll run this and merge if it passes after dinner. Thanks again!

@danfinlay
Copy link
Contributor

Interesting note to our team: Pushing up his branch onto the upstream remote triggered the test suite on the same PR! That's convenient.

@danfinlay danfinlay merged commit c878e5a into MetaMask:master May 31, 2017
@danfinlay
Copy link
Contributor

Published in web3-provider-engine@12.2.1. Should be in a new release of MetaMask tomorrow.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants