When shifting collectionId left by 128 bits, the function assumes both values fit within 128 bits each. Using
uint256 parameters is misleading and dangerous.
If collectionId > type(uint128).max
, the left shift will overflow and lose data
If itemId > type(uint128).max
, it will corrupt the encoded collectionId
portion
No validation that inputs fit within their allocated bit ranges
Use safe casting both collectionId and itemId to uint128.
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.