Adding (address token) as an argument.
Add (address token) as an argument in below code =>
error DSCEngine__NotAllowedToken(address token);
modifier isAllowedToken(address token) {
if (s_priceFeeds[token] == address(0)) {
revert DSCEngine__NotAllowedToken(token);
}
_;
}
It will include the token address that caused the error as an argument to the error. This can provide more detailed information about what caused the error and can be useful for debugging and troubleshooting.
Manual Review
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.