_whiteListCollection
does not remove collection
from _collections
array.
When whitelist for a collection is disabled it’s not removed from the array and will cause it only to grow in size and consume a lot of gas to be iterated in getWhiteListedCollections
High gas consumption on the lookup function due to not removing non-whitelisted token from the _collections
array.
Manual Review
When enabled = false
, consider removing the collection from the array as well.
LightChaser: Low-19, Gas-10
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.