Summary
While trying to compile the Library, There is an error while compiling with the custom errors, preventing you from compiling successfully.
Vulnerability Details
[⠔] Compiling...
[⠘] Compiling 23 files with 0.8.3
[⠃] Solc 0.8.3 finished in 182.88ms
Error:
Compiler run failed
error[2314]: ParserError: Expected ';' but got '('
--> src/MathMasters.sol:14:41:
|
14 | error MathMasters__FactorialOverflow();
| ^
Impact
Could not launch code under 0.8.3 compiler.
Tools Used
Forge
Recommendations
Compile using 0.8.4 and up. set in the Foundtry.toml
solc = "0.8.4"
Once set, Everything compiles and tests out.
[⠔] Compiling...
No files changed, compilation skipped
Running 7 tests for test/MathMasters.t.sol:MathMastersTest
[PASS] testMulWad() (gas: 647)
[PASS] testMulWadFuzz(uint256,uint256) (runs: 100, μ: 581, ~: 658)
[PASS] testMulWadUp() (gas: 846)
[PASS] testMulWadUpFuzz(uint256,uint256) (runs: 100, μ: 945, ~: 1156)
[PASS] testSqrt() (gas: 2478)
[PASS] testSqrtFuzzSolmate(uint256) (runs: 100, μ: 990, ~: 982)
[PASS] testSqrtFuzzUni(uint256) (runs: 100, μ: 13186, ~: 5297)
Test result: ok. 7 passed; 0 failed; finished in 13.27ms