There is solidity code that fails here:
error InvalidCheck(uint32 _check);
modifier someCheck(uint32 _check) {
if (check != _check) revert InvalidCheck(check);
_;
}
My frontend application fails on this check and doesn't provide any context about the error.
"message: 'cannot estimate gas; transaction may fail or may r…UNPREDICTABLE_GAS_LIMIT"
When my contract fails due to it being paused:
require(!paused(), "Pausable: paused");
This provides the "Pausable: paused:" message to my frontend.
Is using require the solution if I want to display error context to the frontend?
error.error
, can you once check?