Question Details

No question body available.

Tags

blockchain smartcontracts

Answers (1)

Accepted Answer Available
Accepted Answer
April 23, 2026 Score: 3 Rep: 398 Quality: High Completeness: 50%

Cell overflow means your contract's initial data is too big for TON's limits (over 1023 bits).

Add default(0) to your count variable:

contract Counter {
    count: Int as u32 default(0);  // This shrinks the init cell

get fun get_count(): Int { return self.count; }

receive(msg: Inc) { self.count += 1; } }

Then run toncli deploy again. This works because testnet enforces stricter cell sizes than local testing.