Question · Blockchain and Web3 course · Module 7: Contract Interaction
Quiz: Custom errors
Custom errors in Solidity (e.g. error InsufficientBalance(uint256)):
Answer options
- Cannot be decoded in JavaScript
- Are cheaper than require with a string and can be decoded via interface.parseError()
- Are only for local debugging
- Require a special compiler
You can check the correct answer by solving this task in the CodeWorlds game.