Solidity Custom Errors: Cutting Revert Gas Costs in Production Contracts
Replace require strings with Solidity custom errors to cut revert gas costs and get structured, decodable failure data. Works from 0.8.4 onward; requires ABI publishing for explorer support.