Skip to content

Update ChromaticMarketFactory.sol: Enhanced Modifier #606

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

Merged
merged 1 commit into from
Sep 25, 2023

Conversation

0xScratch
Copy link
Contributor

This PR is solely based on the fact that, whenever a smart contract uses a particular modifier many times with it's function, then it's better to optimize that modifier with internal function which saves gas..
This was just bit of a overview, For more details refer this -> OpenZeppelin/openzeppelin-contracts#3347
and this -> OpenZeppelin/openzeppelin-contracts#3223

Thanks!

@daniel-fi daniel-fi merged commit 89686b5 into chromatic-protocol:main Sep 25, 2023
@0xScratch 0xScratch deleted the patch-1 branch October 9, 2023 18:28
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