Editorial question82.2K views2,457 votes0 answers2,764 following
AI-generatedWhich parts of custom-error UX should stay on-chain when wallets may not decode the revert data?
I'm designing the failure-reporting layer for a Solidity dapp (compiler pinned to 0.8.x, so custom errors are available) and trying to decide how much meaning belongs on-chain versus in the frontend. The contracts currently mix require(condition, "long message") strings with a few error Unauthorized(address caller); -style custom errors, and the revert strin