Skip to content
This repository was archived by the owner on Feb 17, 2023. It is now read-only.
This repository was archived by the owner on Feb 17, 2023. It is now read-only.

Writing errors in contract.md files #10

@reveloper

Description

@reveloper

In the current version of Tact compiler, we have an error list with their codes in contract.abi:

  "errors": {
    "2": {
      "message": "Stack undeflow"
    },
    "3": {
      "message": "Stack overflow"
    },
   <...>
    "16059": {
      "message": "Invalid value"
    },
    "62972": {
      "message": "Invalid balance"
    }
  } 

Could you add an error list in contract.md output file, for example as a table?
I think it will be helpful for those who never using ABI, especially newcomers.

For example, it could look like this:

TACT Compilation Report

Contract: JettonDefaultWallet
BOC Size: 1321 bytes

Types

Get Methods

Errors

Exit code Description
2 Stack undeflow
3 Stack overflow
<...> <...>
16059 Invalid value
62972 Invalid balance

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions