Skip to content

Cleaner cctx error message when not enough funds to pay for revert tx #3696

@lumtis

Description

@lumtis

Describe the Issue
We made improvement in the cctx error info however one common error message that might still be unclear to the user is when there is not enough funds to pay for the revert tx:
Example

    error_message_revert: '{"type":"internal_error","error":"outTxGasFee(10000000)
      more than available gas for tx (1000000) | Identifiers : 0xdfe280f111900991daa5c25d73a5ae134022b81616d3325945ac157b5394b598-104-104-0
      : not enough gas"}'

The revert fee tx is 10000000, the cctx contains 1000000 and can't pay it.

The error message should be made ux friendly:

fee for the revert tx costs 10000000 unit of gas tokens, the cctx only contains 1000000

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions