Currently there is the REQUIRE that lets you mimic solidity require(condition, "message")
I want to propose a REQUIRE_CUSTOM_ERROR:
#define macro REQUIRE_CUSTOM_ERROR() = takes(2) returns(0) {
// [condition, customErrorSig]
do_not_throwErr jumpi
0x00 mstore
0x04 0x00 revert
do_not_throwErr:
pop
}
Currently there is the
REQUIREthat lets you mimic solidityrequire(condition, "message")I want to propose a
REQUIRE_CUSTOM_ERROR: