Skip to content

Tolk verification fails: TypeError: 8440158398488578882 is out of safe integer range #445

@pjonaszik

Description

@pjonaszik

Description

Attempting to verify a Tolk 1.2.0 contract on verifier.ton.org fails with:

Error: Server error TypeError: 8440158398488578882 is out of safe integer range

Steps to reproduce

  1. Go to https://verifier.ton.org
  2. Enter contract address: EQCYFR0gg9vN1zYV_4v3XRuC2SfZg5HRhcs64ccLUAUlftjp
  3. Select compiler: Tolk 1.2.0
  4. Upload Tolk source files (minter contract with imports: constants, errors, fees-management, jetton-utils, messages, storage)
  5. Click verify

Expected behavior

Verification should succeed (or fail with a compilation mismatch error).

Actual behavior

Server returns TypeError: 8440158398488578882 is out of safe integer range

The number 8440158398488578882 exceeds Number.MAX_SAFE_INTEGER (9007199254740991). The backend likely needs to use BigInt when parsing this value.

Environment

  • Compiler: Tolk 1.2.0
  • Contract: TEP-74 Jetton Minter with custom getters
  • Tried both "verifier.ton.org" and "orbs.com" backends — same error
  • Browser: Chrome (latest)

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