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

Use Modifiers #10

Open
daopunk opened this issue Jan 19, 2025 · 0 comments
Open

Use Modifiers #10

daopunk opened this issue Jan 19, 2025 · 0 comments
Assignees
Labels

Comments

@daopunk
Copy link
Collaborator

daopunk commented Jan 19, 2025

this check is used 5 times, can be a modifier to clean up logic, reduce lines of code, and add more readability:
if (_isDecommissioned(_circle)) revert NotCommissioned();

same here
if (!isMember[_id][_member]) revert NotMember();

@daopunk daopunk changed the title Use Modifier Use Modifiers Jan 19, 2025
exo404 added a commit to exo404/saving-circles that referenced this issue Jan 28, 2025
exo404 added a commit to exo404/saving-circles that referenced this issue Jan 28, 2025
exo404 added a commit to exo404/saving-circles that referenced this issue Jan 28, 2025
exo404 added a commit to exo404/saving-circles that referenced this issue Jan 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants