Closed 0xScratch closed 9 months ago
Our team will soon review your PR. Thanks @Aryan9592 :)
LGTM. Thaks for this ssue.
Thank you @Aryan9592 for taking out your valuable time in order to contribute to our project. Looking forward for more such amazing contributions :)
Thank you @Aryan9592 for taking out your valuable time in order to contribute to our project. Looking forward for more such amazing contributions :)
For sure!
🛠️ Fixes Issue
Inefficient 'For' loops
👨💻 Changes proposed
Changed
uint256 i = 0;
->uint256 i;
, unsigned integers always have a default value of 0. Thus, it is a kind of waste of some gas to initialize variable to 0;Efficient
For
loops -> Above point is maintained here. Plusi++
changed to++i
, does the same work with less gas used up[x] My code follows the code style of this project.
[x] This PR does not contain plagiarized content.
[x] The title of my pull request is a short description of the requested changes.