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: error in BSCValidatorSet #258

Merged
merged 4 commits into from
Apr 12, 2023
Merged

fix: error in BSCValidatorSet #258

merged 4 commits into from
Apr 12, 2023

Conversation

pythonberg1997
Copy link
Collaborator

@pythonberg1997 pythonberg1997 commented Apr 7, 2023

Summary

This PR is to fix errors within BSCValidatorSet contract

Change

  • add more comments
  • fix error within doUpdateState function
  • fix typo

@pythonberg1997 pythonberg1997 changed the title fix: error in BSCValidatorSet.template fix: error in BSCValidatorSet Apr 8, 2023
NathanBSC
NathanBSC previously approved these changes Apr 8, 2023
@@ -418,10 +419,6 @@ contract BSCValidatorSet is IBSCValidatorSet, System, IParamSubscriber, IApplica
}
}

/**
Copy link
Collaborator

Choose a reason for hiding this comment

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

why the comments are removed?

validatorExtraSet[i].isMaintaining = false;
validatorExtraSet[i].enterMaintenanceHeight = 0;
} else {
// if the validator is the same, update the vote address if it is different
if (!BytesLib.equal(newVoteAddrs[i], validatorExtraSet[i].voteAddress)) {
Copy link
Contributor

@NathanBSC NathanBSC Apr 10, 2023

Choose a reason for hiding this comment

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

npm run generate-QA
fail for undeclare BytesLib
image

@unclezoro unclezoro merged commit e5f2997 into bnb-chain:develop Apr 12, 2023
unclezoro pushed a commit that referenced this pull request Apr 20, 2023
unclezoro pushed a commit that referenced this pull request Apr 20, 2023
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.

3 participants