I'm trying to deploy a simple counter contract in Tact on TON testnet, but deployment fails with "cell overflow" error during func deploy() execution. Here's my contract:
contract Counter {
count: Int as u32;
get fun get_count(): Int {
return self.count;
}
receive(msg: Inc) {
self.count += 1;
}
}
message Inc {}
Using TON CLI: toncli deploy with testnet wallet. Gas limit is standard, no custom data. Local toncli run works fine.
Why does this overflow on testnet but not locally? Is it a 2026 testnet config change or Tact compiler bug? Need exact fix—cell size tweaks or pragma? No similar issues found.