The revert
assembly blocks have wrong error selectors.
The errors selectors used in MathMasters::mulWad()
and MathMasters::mulWadUp()
functions (0xbac65e5b
) are the selectors for MulWadFailed()
while the error defined is MathMasters__MulWadFailed()
with a selector of 0xa56044f7
. Moreover, the selector bytes need to be left padded like that 0xa56044f700000000000000000000000000000000000000000000000000000000
The functions will return a blank error instead of the custom error. An external script or user could watch for this error and never find it.
This line gives you the selector.
You can use foundry cast
to check the selectors.
Foundry
You can use bytes4 selector = MathMasters__MulWadFailed.selector;
to get the right selector and have a more readable code. You can also replace the selectors for the good ones.
OR
OR
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.