You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Most of the Zora-V3 contracts are using require statements for reverting errors. Which is not a very gas-efficient way to revert errors. The require statements stores Strings 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:
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: