Hi
I write a contract that has a custom error and revert. when I get Error, Etherscan shows custom Error correctly.
but when I use this contract with upgrade uups library, Etherscan shows only fail and does not show error detail.
Note that I verified smart contract source.
contract TestErrorring is Initializable, OwnableUpgradeable, UUPSUpgradeable {
error Errorparadigm(string);
function initialize() initializer public {
__Ownable_init();
__UUPSUpgradeable_init();
}
function _authorizeUpgrade(address newImplementation)
internal
onlyOwner
override
{}
function havingError2() public{
if(true)
revert Errorparadigm("have error string message");
}
}