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

Update AMBBridgeHelper.sol #684

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

0xScratch
Copy link

Changed uint256 i = 0 to uint256 i, there's no need to initialize some 'uint' variable to 0 cuz the default value already sets itself to 0. Saves some gas too.

Moreover, there's one more change we can make in this 'for' loop, that is changing i++ to ++i, if this change isn't messing up with the code logic, This is always beneficial to do so. Although, I haven't made this change, just a suggestion if you are down with it!

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

Successfully merging this pull request may close these issues.

1 participant