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

N-06 Gas Optimizations #1601

Conversation

capedcrusader21
Copy link
Contributor

@capedcrusader21 capedcrusader21 commented Sep 17, 2024

Description

  • used ++i instead of i++.

  • require statement before actual function logic.

  • writing array length to stack except for _processERC1155Bundles() because of stack too deep error.

  • added expectedFinalResult to bundle tests.

Screenshot 2024-09-17 at 6 08 06 PM Screenshot 2024-09-17 at 6 08 18 PM Screenshot 2024-09-17 at 6 08 26 PM -05

@capedcrusader21 capedcrusader21 requested a review from a team as a code owner September 17, 2024 12:41
@capedcrusader21 capedcrusader21 requested review from atkinsonholly and removed request for a team September 17, 2024 12:41
Copy link

openzeppelin-code bot commented Sep 17, 2024

N-06 Gas Optimizations

Generated at commit: fef969be76b5697009ccccb77c36cd8f3cb65e62

🚨 Report Summary

Severity Level Results
Contracts Critical
High
Medium
Low
Note
Total
3
1
0
5
30
39

For more details view the full report in OpenZeppelin Code Inspector

@wojciech-turek wojciech-turek merged commit 5a14b1f into marketplace-bundle/N-05-lack-of-security-contract Dec 3, 2024
6 checks passed
@wojciech-turek wojciech-turek deleted the marketplace-bundle/N-06-gas-optimization branch December 3, 2024 10:23
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.

2 participants