-
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 test framework with minimal deploy script #17
Conversation
Pull Request Test Coverage Report for Build 11221809554Details
💛 - Coveralls |
contract CompoundGovernorConstants { | ||
// These constants are taken from the existing GovernorBravoDelegate contract. | ||
|
||
uint48 INITIAL_VOTING_DELAY = 13_140; // The delay before voting takes place, in blocks |
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.
hey @jferas how confident are we that these are the constants we're going live with? should we put a TODO here (or better, an issue to verify these initialization params)?
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.
|
||
function setUp() public virtual { | ||
// private key of the deployer (use the anvil default account #0 key, if no environment variable is set) | ||
deployerPrivateKey = vm.envOr( |
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 it possible to avoid setting a PK in the env? Would prefer to let foundry manage the wallet instead. We run across this often, and i remember there's a limitation with calling scripts in tests. maybe this is something we can create an issue for.
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.
Added an issue: #18
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!
* feat: proposal guardian * remove `.only` * create new `proposalGuardian` role * add tests * Update comments per recommendation * feat: proposal guardian expires * lint `GovernorBravoDelegate` * feat: expose guardian expiration (#17)
* Added test framework with minimal deploy script * forge fmt constant cleanup * Added TODO about constants
Resolves #5