Hi, guys
Can anyone pls explain why Etherscan doesn't show custom error
Or is there any specific way to show that.
Thanks.
Example
pragma solidity 0.8.19;
contract testCustomError {
uint public value;
error NotValidInput();
function updateValue (uint _nV) external {
if (_nV <3) revert NotValidInput();
value = _nV
}
}
If someone execute the tx with value 2, Etherscan will show fail only without the custom error which is declared.
May 6, 2023, 12:19 PM
Or testnet doesn't show (I tried on sepolia)?
https://sepolia.etherscan.io/tx/0xcddb98bf493c51c5bb468c917eee625086e8edc28d1bf0f66124f0034b3be2d9
It's verified first, then called
I can give it another shot, maybe updated
May 6, 2023, 12:34 PM