Beginner FriendlyFoundryNFT
100 EXP
View results
Submission Details
Severity: low
Invalid

use ERC721A instead of ERC721 for gas efficiency and security

Summary

Exploring the usage of ERC721A over ERC721 due to its notable advantages in gas efficiency and security optimization. This change can potentially enhance the performance and robustness of the contract.

Vulnerability Details

Using the standard ERC721 token standard in smart contracts can expose vulnerabilities, including high gas costs, reentrant attacks, front-running, and potential issues related to approval management, integer arithmetic, and metadata handling

Impact

Utilizing the standard ERC721 can lead to substantial gas costs and a lack of security optimization.

Tools Used

  • Foundry

  • Manual review

Recommendations

Consider using ERC721A to mitigate gas costs and enhance security in your contract.

-contract PuppyRaffle is ERC721, Ownable {
+contract PuppyRaffle is ERC721A, Ownable {
  • Make sure to import ERC721A ( https://github.com/chiru-labs/ERC721A )

Updates

Lead Judging Commences

patrickalphac Lead Judge about 2 years ago
Submission Judgement Published
Invalidated
Reason: Gas optimizations

Support

FAQs

Can't find an answer? Chat with us on Discord, Twitter or Linkedin.

Give us feedback!