In FestivalPass contract which follows the ERC1155 standard of handling tokens, has a function to encodeTokenId FestivalPass::encodeTokenId
, which tries to fit collectionId and itemId into a uint256 variable, it fails provide a solution in cased where collectionId or itemId would exceed the limit of type(uint128) for the Ids, when users want to redeem their unique NFT it would revert when both or one of the IDs are bigger than uint128 max, this would prevent users from minting Memorabilia NFTs
Likelihood:
When Collection IDs or Items Ids exceed the maximum of uint128 , Users who tries to redeem their unique NFT would get back failed transactions
Impact:
Users redeeming their NFTs at a period when collection IDs are bigger than uint128 max would most definitely see recieve a failed transaction call
A user randomly calls encodeTokenId with numbers greater than uint128 max and gets a revert
The Protocol could add a measure that increases the limit for encoding collectionId and itemId or they could add a cap to minting unique NFT tokens
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.