-
Notifications
You must be signed in to change notification settings - Fork 0
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
Added tests for changing admin/upgrading protocol via governance #21
Conversation
Current dependencies on/for this PR:
This stack of pull requests is managed by Graphite. |
test/RadworksDripsGovernance.t.sol
Outdated
@@ -118,6 +164,34 @@ abstract contract RadworksDripsGovernance is ProposalTest { | |||
// Ensure the admin role has been renounced | |||
assertEq(drips.admin(), address(0)); | |||
} | |||
|
|||
function test_proposeNewAdminViaGovernance(address _newAdmin) public { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Name should be testFuzz_ProposaNewAdminViaGovernance
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done: ec11571
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, two small changes left but should be good to merge after
test/RadworksDripsGovernance.t.sol
Outdated
import {ProposalTest} from "test/helpers/ProposalTest.sol"; | ||
|
||
import {console2} from "forge-std/console2.sol"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Leftover console2
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done: 8706cb8
test/RadworksDripsGovernance.t.sol
Outdated
import {ProposalTest} from "test/helpers/ProposalTest.sol"; | ||
|
||
import {console2} from "forge-std/console2.sol"; | ||
|
||
/// @dev This contract used in the testing of using governance to upgrade the Drips protocol |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"is used in the testing of governance to upgrade the Drips protocol*.*" this sounds a little better
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done: 79efaea
cfabece
to
ec11571
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm after alex's suggestions
ec11571
to
79efaea
Compare
79efaea
to
7ffeb0a
Compare
Added test for changing admin via governance
Add Drips protocol upgrade via governance tests