protofire / solhint

Solhint is an open-source project to provide a linting utility for Solidity code.
https://protofire.github.io/solhint/
MIT License
1.04k stars 161 forks source link

allow `gas-custom-errors` rule to properly handle custom errors inside require statements #602

Open shaspitz opened 2 months ago

shaspitz commented 2 months ago

Solidity 0.8.26 introduces the ability to use custom errors within require statements. When using this functionality (custom error in conjunction w/ require statement), solhint faultily marks the line as having a gas-custom-errors infraction

CJ42 commented 1 month ago

Agree as these warnings are now misleading. A release with this support would be welcome.

image