-
Notifications
You must be signed in to change notification settings - Fork 226
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
Gas inefficiencies in KittyMinting
#6
Comments
Weirdly, I just learned about
Your suggestion would result in two reads (instead of one) in Thanks again, @Arachnid! Love these reports! |
Description
There are a couple of gas inefficiencies in
KittyMinting
that could be resolved for significantly lower gas consumption:constant
would allow the compiler to optimise them out, saving 40k of deployment-time gas, and ~200 gas each time they are read.promoCreatedCount
, and checking the sum of the two variables instead of each separately, would save ~5k gas at update time.The text was updated successfully, but these errors were encountered: