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
- Go to https://verifier.ton.org
- Enter contract address:
EQCYFR0gg9vN1zYV_4v3XRuC2SfZg5HRhcs64ccLUAUlftjp
- Select compiler: Tolk 1.2.0
- Upload Tolk source files (minter contract with imports: constants, errors, fees-management, jetton-utils, messages, storage)
- 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)