You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Keep status_message very high level, example "aborted: revert outboundfailed". Can give useful information for abort: cross-chain transaction aborted, asset refunded on ZetaChain on address 0xaaa
Split error_message into error_message and revert_error_message
Make the error_message less verbose, arg info is not necessary
cross-chain call reverted: 1 million gas limit reached
Error for the revert can be make more explicit, currently we use error message in the protocol that might be unclear to user like outTxGasFee(127200) more than available gas for tx (63200)
Describe the Issue
The status message of CCTX was previously split in
status_message
to describe status anderror_message
to describe cctx processing error if any.However, a UX issues still remain:
status_message
generally doesn't give much valuable informationerror_message
is generall too verbose, not organized enough and contains both error from the smart contract call and revert if there is one.Example with CCTX
0x61d9517371fa51f3dedc09148b0ab73b24273ef5411e892ad0094438a728ebba
on testnet:Solution consider:
Keep
status_message
very high level, example "aborted: revert outboundfailed". Can give useful information for abort:cross-chain transaction aborted, asset refunded on ZetaChain on address 0xaaa
Split
error_message
intoerror_message
andrevert_error_message
Make the
error_message
less verbose, arg info is not necessarycross-chain call reverted: reason: 0xaaa
cross-chain call reverted: non-existing target contract
cross-chain call reverted: deposit paused
cross-chain call reverted: 1 million gas limit reached
Error for the revert can be make more explicit, currently we use error message in the protocol that might be unclear to user like
outTxGasFee(127200) more than available gas for tx (63200)
revert transaction failed: insufficient for revert, needed: 127200, available: 63200
revert transaction failed: onRevert call failed
Example, how it can look like for cctx above: (need to investigate why reason is not shown for cctx above)
The text was updated successfully, but these errors were encountered: