Skip to content

"forge compile" issue while trying to test inherited custom error #7222

Answered by pyk
linghuccc asked this question in Help
Discussion options

You must be logged in to vote

You can use Ownable.OwnableUnauthorizedAccount.selector directly

vm.expectRevert(Ownable.OwnableUnauthorizedAccount.selector, user);

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
1 reply
@linghuccc
Comment options

Comment options

You must be logged in to vote
2 replies
@JoaoMorais96
Comment options

@linghuccc
Comment options

Answer selected by linghuccc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
3 participants