You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
try {
repeat (pow(2, 31) -1) { }
} catch (exitCode) {
// ← we won't get here, as execution will// end in the try {} block due to lack of gas
}
Mirror task in Tact docs: tact-lang/tact#3498. There, I've edited the code block to be like this:
try {
// The exit code -14 can never be caught in try...catch,// and it is always thrown for the whole contractrepeat (pow(2, 31) -1) {}
} catch (_) {
// This block will not be executed
}
Two points here:
Mirror task in Tact docs: tact-lang/tact#3498. There, I've edited the code block to be like this: