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

custom error instead of require statement #4111

Closed
AmitKochar1 opened this issue Mar 12, 2023 · 1 comment
Closed

custom error instead of require statement #4111

AmitKochar1 opened this issue Mar 12, 2023 · 1 comment

Comments

@AmitKochar1
Copy link

To make ERC20 gas efficient!!

Hi All,

I have been working with required statements and custom errors. Since we know "require" statements take more gas because it returns a string.

Why does openZeppline not change a "require" statement to custom errors "if" statement?

is there any particular reason "require" statements are still in the saferERC20 contract?

Thanks

@Amxx
Copy link
Collaborator

Amxx commented Mar 14, 2023

This is a duplicate of
#2839
#3614

@Amxx Amxx closed this as completed Mar 14, 2023
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

No branches or pull requests

2 participants