vm.expectRevert should support an empty signature to catch reverts with no message #885
Labels
A-cheatcodes
Area: cheatcodes
C-forge
Command: forge
Cmd-forge-test
Command: forge test
P-normal
Priority: normal
T-feature
Type: feature
Component
Forge
Describe the feature you would like
I know that's not the best practice and we should not support it but as we discussed on telegram forge will also be used by auditors that have no power on the devs choice but maybe would like to audit the project using the powerful tools that forge use.
I was testing a contract that have this requirement in the code
and the only way to cover that case in my tests was to use
from a dev UX prospective, I would expect to have a
expectRevert
function with an empty selector that will cover that caseAdditional context
No response
The text was updated successfully, but these errors were encountered: