Closed kazuakiishiguro closed 3 years ago
Implementing #46 will also accomplish this goal at the same time.
add something like
require(block.timestamp < maci.calcSignUpDeadline())
or use maci's modifier
modifier isBeforeSignUpDeadline() {
require(block.timestamp < calcSignUpDeadline(), "MACI: the sign-up period has passed");
_;
}
/*
* Ensures that the calling function only continues execution if the
* current block time is after or equal to the sign-up deadline.
*/
modifier isAfterSignUpDeadline() {
require(block.timestamp >= calcSignUpDeadline(), "MACI: the sign-up period is not over");
_;
}
Added 9b607a57aca7c6587c2af58fb4c78b0a4452ef24
Passing something like
votingDurationSeconds
to contract'sconstructor()
to setup voting duration.The motivation for adding this feature is to allow for batch processing after the deadline by having a deadline for voting.