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

Check minExecutionDelay in the canExecute() #268

Merged
merged 3 commits into from
Feb 5, 2025

Conversation

Psirex
Copy link
Contributor

@Psirex Psirex commented Feb 5, 2025

This PR updates the ExecutableProposals.canExecute() method to account for possible minExecutionDelay constraint violations. Without this change, in extraordinary cases, canExecute() may return an incorrect result.

Copy link
Contributor

@sandstone-ag sandstone-ag left a comment

Choose a reason for hiding this comment

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

LGTM. It's optional - you may want to change test assertions in the unit test to increase readability, as suggested in the comments.

test/unit/libraries/ExecutableProposals.t.sol Outdated Show resolved Hide resolved
test/unit/libraries/ExecutableProposals.t.sol Outdated Show resolved Hide resolved
Copy link
Contributor

@sandstone-ag sandstone-ag left a comment

Choose a reason for hiding this comment

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

LGTM

@Psirex Psirex merged commit 32cfaa9 into develop Feb 5, 2025
2 checks passed
@Psirex Psirex mentioned this pull request Feb 5, 2025
@sandstone-ag sandstone-ag deleted the fix/can-execute-check-min-execution-delay branch February 7, 2025 13:26
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.

3 participants