-
Happy new year! I have encountered an issue while trying to test inherited custom error. Hoping some guru could help me out. Ownable.sol:
One.sol (this contract inherits contract Ownable):
Two.sol (this contract inherits contract One):
test script (test function update() in contract Two):
While doing " Thank you for your time. Look forward to your help! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
Same problem, have you found any solution? |
Beta Was this translation helpful? Give feedback.
-
You can use vm.expectRevert(Ownable.OwnableUnauthorizedAccount.selector, user); |
Beta Was this translation helpful? Give feedback.
You can use
Ownable.OwnableUnauthorizedAccount.selector
directly