Cheatcode expectRevert
doesn't catch error messages from libraries
#4405
Labels
A-cheatcodes
Area: cheatcodes
C-forge
Command: forge
Cmd-forge-test
Command: forge test
T-bug
Type: bug
T-to-investigate
Type: to investigate
Milestone
Component
Forge
Have you ensured that all of these are up to date?
What version of Foundry are you on?
forge 0.2.0 (b44b045 2023-02-21T00:22:41.521901Z)
What command(s) is the bug in?
forge test
Operating System
macOS (Apple Silicon)
Describe the bug
Helper Contract:
In the example bellow
testRevertTransfer
is expected to be successful as it was supposed to catch the error message from the library but in reality it doesn't.Repo with reproducible error: https://github.com/pedrommaiaa/Foundry-Library-Error
Issue also opened in the forge-std repo: foundry-rs/forge-std#306
The text was updated successfully, but these errors were encountered: