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

Test propose, queue, execute, cancel functions #52

Merged
merged 3 commits into from
Nov 4, 2024

Conversation

garyghayrat
Copy link
Member

No description provided.

@garyghayrat garyghayrat requested a review from jferas November 4, 2024 02:25
@garyghayrat garyghayrat marked this pull request as ready for review November 4, 2024 02:25
Copy link
Collaborator

@jferas jferas left a comment

Choose a reason for hiding this comment

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

Looks good.. only thing I can think to add would be tests for the functions queue, execute, and cancel that take proposal ID as a parameter and verify that they revert properly if passed an invalid proposal ID.

Copy link
Collaborator

@wildmolasses wildmolasses left a comment

Choose a reason for hiding this comment

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

yes, @garyghayrat, exactly what i was looking for!

contracts/test/CompoundGovernor.t.sol Outdated Show resolved Hide resolved
contracts/test/CompoundGovernor.t.sol Outdated Show resolved Hide resolved
contracts/test/CompoundGovernor.t.sol Outdated Show resolved Hide resolved
@wildmolasses wildmolasses merged commit 8c5d88b into main Nov 4, 2024
1 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants