Custom errors were introduced in Solidity version 0.8.4. However, the specified Solidity version in the pragma statement is 0.8.0, leading to a compilation error.
Custom errors were introduced in Solidity version 0.8.4. This prevents smart contracts using version 0.8.0 from using this library.
Ref: Solidity 0.8.4 Release Announcement
Smart contracts using version 0.8.0 of Solidity and trying to use custom errors will encounter a compilation error.
Consider upgrading the Solidity version specified in the pragma statement to 0.8.4 or a later version that supports custom errors. This can be achieved by updating the pragma statement at the beginning of the contract:
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.