Skip to content

Conversation

@omurovec
Copy link
Contributor

@omurovec omurovec commented Jan 11, 2023

Fixes #3947

Fixes typo in governance docs which causes example to fail to compile.

PR Checklist

  • Tests
  • Documentation
  • Changelog entry

@Amxx
Copy link
Collaborator

Amxx commented Jan 11, 2023

Hello @omurovec, and thank you for raising this.

AFAIK, this should probably not be overridden at all. I'll see if that can't be cleaned up even further

@omurovec
Copy link
Contributor Author

Great! Was also planning to create a duplicate issue in the upgradeable repo since I believe it has the same issue.
@Amxx

@frangio
Copy link
Contributor

frangio commented Jan 11, 2023

Pretty sure this was broken due to the changes to getVotes in 4.6.0.

I noticed that the imports were wrong as well so included that in this PR.

Was also planning to create a duplicate issue in the upgradeable repo since I believe it has the same issue.

There's no need to do this. The upgradeable repo will update once we fix it here.

frangio
frangio previously approved these changes Jan 11, 2023
@frangio frangio changed the title Fix governance docs typo #3947 Fix governance tutorial contract Jan 11, 2023
Copy link
Contributor

@frangio frangio left a comment

Choose a reason for hiding this comment

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

Interesting that seems to compile as well. Opened OpenZeppelin/contracts-wizard#218.

@frangio frangio merged commit 5dbde1a into OpenZeppelin:master Jan 12, 2023
@gitpoap-bot
Copy link

gitpoap-bot bot commented Jan 12, 2023

Congrats, your important contribution to this open-source project has earned you a GitPOAP!

GitPOAP: 2023 OpenZeppelin Contracts Contributor:

GitPOAP: 2023 OpenZeppelin Contracts Contributor GitPOAP Badge

Head to gitpoap.io & connect your GitHub account to mint!

Learn more about GitPOAPs here.

frangio added a commit that referenced this pull request Jan 12, 2023
Co-authored-by: Francisco Giordano <[email protected]>
Co-authored-by: Hadrien Croubois <[email protected]>
(cherry picked from commit 5dbde1a)
@omurovec omurovec deleted the fix/governance-docs-typo-#3947 branch January 19, 2023 01:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Governor docs example fails to compile

3 participants