As described in the documentation the compatibilities must be:
Solc Version: 0.8.3 < 0.9.0
But The Pragma solidity v0.8.3 can't manage the error as defined in the smart contract. This is a features added from the Solidity v0.8.4.
The Pragma solidity v0.8.3 can't manage the error as defined in the smart contract. This is a features added from the starting from Solidity v0.8.4 as descirbed in their blog (https://soliditylang.org/blog/2021/04/21/custom-errors/):
"Starting from Solidity v0.8.4, there is a convenient and gas-efficient way to explain to users why an operation failed through the use of custom errors. Until now, you could already use strings to give more information about failures (e.g., revert("Insufficient funds.");), but they are rather expensive, especially when it comes to deploy cost, and it is difficult to use dynamic information in them.
Custom errors are defined using the error statement, which can be used inside and outside of contracts (including interfaces and libraries)."
The Solidity version 0.8.3 does not support the custom error feature introduced in version 0.8.4. This limits the library's ability to efficiently handle errors. Without the ability to define custom errors, there is a risk of using generic or misleading error messages.
Manual review
Restrict the use of the library from the 0.8.4 or define the error with a require statement (accepted by the v0.8.3)
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.