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

updated docs for governor votes, 0 is against not for #2915

Merged

Conversation

PatrickAlphaC
Copy link
Contributor

The docs were outdated. Took me a few hours to find out what was going wrong. In both the compound and oz versions of counting votes, 0 is against, but in the docs, it said 0 was for.

Examples:

* - `support=bravo` refers to the vote options 0 = For, 1 = Against, 2 = Abstain, as in `GovernorBravo`.

PR Checklist

  • [x ] Tests
  • [x ] Documentation
  • [x ] Changelog entry

@Amxx Amxx merged commit 0db97c9 into OpenZeppelin:master Oct 18, 2021
@frangio
Copy link
Contributor

frangio commented Oct 18, 2021

Thanks @PatrickAlphaC! For the record, no need to include changelog entries for documentation changes.

frangio pushed a commit that referenced this pull request Oct 18, 2021
* updated docs for governor votes, 0 is against not for

* Revert unecessary changelog entry

Co-authored-by: Hadrien Croubois <hadrien.croubois@gmail.com>
(cherry picked from commit 0db97c9)
@PatrickAlphaC
Copy link
Contributor Author

I almost didn't and then I saw the checklist.

I chose to err on the side of caution, but good to know!

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.

None yet

3 participants