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

feat: initializable delay module #2

Merged
merged 3 commits into from
Jul 1, 2021
Merged

Conversation

cbrzn
Copy link
Collaborator

@cbrzn cbrzn commented Jul 1, 2021

No description provided.

bool public isInitialized = false;

constructor() {
isInitialized = true;
Copy link
Member

Choose a reason for hiding this comment

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

Why is isInitialized set to true in the constructor?
Won't this make it always fail the check on line 58? require(!isInitialized, "Module is already initialized");

@auryn-macmillan
Copy link
Member

I went ahead and removed the check to ensure the delay is more than 0, since it's unnecessary and without it we can remove DelayModuleMock.sol.

@auryn-macmillan auryn-macmillan merged commit ad0fd1d into main Jul 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants