Grep-Fu - show all signatures for custom errors
Posted on Tue 07 March 2023 in tech • Tagged with solidity, programming
Grep-Fu
Custom errors are a feature of Solidity that allow you to display error messages to the user in a convenient and gas-efficient way. They are declared in the head of the contract and called after a revert statement.
error Unauthorized();
if (msg.sender != owner()) {
revert Unauthorized();
}
However, a challenge …
Continue reading