The custom error error notRegistered(); is declared but never used anywhere in the contract. Solidity reserves a storage slot for error selectors in the bytecode metadata, slightly increasing deployment byte size and gas cost.
Impact:
Minimal gas impact (~200–300 bytes extra in deployed code). However, it creates code clutter and reduces readability.
Remove the unused error definition to reduce bytecode size and maintain cleaner, optimized code.
Gas optimizations are invalid according to the CodeHawks documentation.
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.