Put in order · Blockchain and Web3 course · Module 6: Solidity Basics
Custom Errors
Arrange the steps for defining and using a custom error in Solidity:
Items to put in order
- revert InsufficientBalance(amount);
- error InsufficientBalance(uint requested);
You can check the correct answer by solving this task in the CodeWorlds game.