-
Notifications
You must be signed in to change notification settings - Fork 74
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
Update AttestationRegistry.sol: Optimized 'For' loops #272
Conversation
Codecov Report
@@ Coverage Diff @@
## dev #272 +/- ##
==========================================
+ Coverage 93.40% 93.53% +0.13%
==========================================
Files 13 13
Lines 197 201 +4
Branches 46 46
==========================================
+ Hits 184 188 +4
Misses 8 8
Partials 5 5
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
Hey @Aryan9592 👋 I was running some comparative tests, and if I'm not mistaken, when running this new version of the In any case, feel free to join us on Discord if you want to learn more about Verax or wish to contribute! |
Actually, solidity introduced these |
Send me the invite! |
Hey @Aryan9592 I didn't forget about this PR! The corresponding PR is there if you're interested: #350 |
Yep that's great @alainncls |
What does this PR do?
This PR is solely aimed at reducing gas costs by enhancing the 'for' loops.
Fixes #
Changed the structure of 'for' loops. This will help -> https://gist.github.com/grGred/9bab8b9bad0cd42fc23d4e31e7347144#for-loops-improvement
Also, make a double-check whether that
unchecked
block doesn't create any unwanted bugs or errors.However,
i++
to++i
might won't be a problem.Type of change
Check list