Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix validators list for contracts upgraded from v1 to v2 #22

Merged
merged 5 commits into from
Apr 17, 2019

Conversation

patitonar
Copy link

This PR fixes the issue mentioned on poanetwork/poa-bridge-contracts#137 (comment)

Refactored how validator list is built. Now it process all ValidatorAdded and ValidatorRemoved in all its variations from contract version 1, version 2 and also when using Rewardable validators contract.

Also applied code style fixes on 489af21

@patitonar patitonar requested a review from akolotov February 8, 2019 17:39
@ghost ghost assigned patitonar Feb 8, 2019
@ghost ghost added the review label Feb 8, 2019
Copy link
Collaborator

@akolotov akolotov left a comment

Choose a reason for hiding this comment

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

Discussed the PR in the Slack chat. All questions addressed.

utils/validatorUtils.js Outdated Show resolved Hide resolved
@akolotov akolotov merged commit e489be3 into develop Apr 17, 2019
@ghost ghost removed the review label Apr 17, 2019
@patitonar patitonar deleted the fix-v1-to-v2-migrated-contracts branch April 17, 2019 11:51
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.

2 participants