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

Add GovernorSequentialProposalId extension for sequential numbers on proposals #5290

Merged
merged 46 commits into from
Dec 19, 2024

Conversation

arr00
Copy link
Contributor

@arr00 arr00 commented Nov 1, 2024

Alternative solution to #5280

PR Checklist

  • Tests
  • Documentation
  • Changeset entry (run npx changeset add)

Copy link

changeset-bot bot commented Nov 1, 2024

🦋 Changeset detected

Latest commit: b10f9be

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
openzeppelin-solidity Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@arr00 arr00 mentioned this pull request Nov 18, 2024
3 tasks
@arr00 arr00 changed the title Sequential Proposal Ids Alt Governor: Sequential Proposal Ids Nov 18, 2024
@arr00 arr00 requested a review from ernestognw November 18, 2024 08:26
@Amxx Amxx added this to the 5.3 milestone Nov 18, 2024
test/helpers/governance.js Outdated Show resolved Hide resolved
Copy link
Member

@ernestognw ernestognw left a comment

Choose a reason for hiding this comment

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

Almost there, I agree with @Amxx that we should express the nextProposalId in terms of a lastProposalId to avoid initializing a variable unnecessarily during construction

Copy link
Member

@ernestognw ernestognw left a comment

Choose a reason for hiding this comment

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

Alright, LGTM

(I'm sure we'll go over another 40 comments after this 😂 )

@arr00 arr00 requested a review from Amxx December 12, 2024 16:52
@ernestognw ernestognw changed the title Governor: Sequential Proposal Ids Add GovernorSequentialProposalId extension for sequential numbers on proposals Dec 13, 2024
Copy link
Collaborator

@Amxx Amxx left a comment

Choose a reason for hiding this comment

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

@ernestognw happy to prove you wrong

@Amxx Amxx merged commit 03e06bf into OpenZeppelin:master Dec 19, 2024
17 checks passed
@arr00 arr00 deleted the feat/sequential-proposal-id-alt-2 branch December 19, 2024 16:17
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.

4 participants