-
Hi everyone, error code: And, we're able to directly use it in the modifier onlyOwner and it does revert when expected. Just got it unit tested in FundMe.test.js as well. Is it some standard error code in Solidity which is not needed to be custom-defined by us? Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
No, it is not standard error code, error yourName();
error WhatIsThis(); And you'll be able to directly use it,... |
Beta Was this translation helpful? Give feedback.
-
When do you get that error? Whilst deploying? |
Beta Was this translation helpful? Give feedback.
-
@ManuWeb3 This is how it works it does not need a body, just declaration and reverts where needed. |
Beta Was this translation helpful? Give feedback.
When do you get that error? Whilst deploying?