Beginner FriendlyFoundry
100 EXP
View results
Submission Details
Severity: low
Valid

Contract code size over limit

Summary

TokenUri and SantasList are not deployable because the SVG exceeds the contract limits imposed by EIP-170 and EIP-3860

Vulnerability Details

TokenUri defines the Santa SVG which exceeds the size limit from https://eips.ethereum.org/EIPS/eip-170 which is 4576 bytes. Also https://eips.ethereum.org/EIPS/eip-3860 requires the code to be less than 49152 bytes and this limit is also exceeded.

Impact

The impact is low since the contract, as it is now, can just not be deployed.

Tools Used

Anvil, Remix

Recommendations

Compress the SVG to meet the contract size limit.

Updates

Lead Judging Commences

inallhonesty Lead Judge over 1 year ago
Submission Judgement Published
Validated
Assigned finding tags:

Contract Byte Size Exceeds Limit

SVG is causing contract byte size to exceed solidity's limits. Tagging for future visibility

Support

FAQs

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