-
Notifications
You must be signed in to change notification settings - Fork 71
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
Contracts are not much Gas Optimized #177
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Most of the Zora-V3 contracts are using
require
statements for reverting errors. Which is not a very gas-efficient way to revert errors. Therequire
statements storesStrings
which costs a lot of Gas (deploying + function Calling & Reverting).And as the protocol aims to be Gas Efficient, Then it would be much better to not use
require
statements to revert the errors.Instead, use
Custom Errors
. Which is a new solidity feature (introduced in 0.8.*)Custom errors do the same thing but cost much less gas than the
require
statements.For more info read this
Thanks,
AB Dee
The text was updated successfully, but these errors were encountered: