Revert reason is not clear for ZRC20s even when using `eth_call`
When your contract call is reverted inside ZRC20 contracts, the revert reason will be entirely opaque. Typically you can switch to eth_call to get a detailed reason but that does not seem to work on zetachain.
Even with https://github.com/zeta-chain/ethermint/pull/234 you would still have to manually map the error codes yourself. We should consider mapping these error codes at the protocol/rpc level and returning nicer error messages.
We should also consider an ethermint change to ensure that revert reasons are returned from eth_estimateGas calls. Related to https://github.com/ethereum/go-ethereum/issues/20714
Yes, this makes to map the regular error with text message.
More an improvement than a bug per se.
Should not be relevant anymore as we improved the cctx error messaging