Some programming languages have built-in functions like is_int() helping to check quickly if a specific variable is of type integer or not. Is there somethin...
one year ago
I've previously seen tilde symbol used for bitwise NOT in other programming languages, so placing ~ before some X means "not X". But it seems in FunC it work...
one year ago
On TON, everything is a cell, and a slice is a cell opened up for reading. But can a slice contain another slice inside? --- > This question was imported fro...
one year ago
I have a simple transfer from a TON wallet to a contract. It has a comment: "2". Is there a way to parse this comment within the recv_internal function? Here...
one year ago
I would like to put some utility functions into different files and call them from the main contract file. How can I do that? --- > This question was importe...
TON documentation states that "every function in TVM program has an internal integer id by which it can be called". But how exactly can I call a function aft...
one year ago
FunC language evolves and gets new versions. But there seems to be no release notes for those versions on the TON website and FunC doesn't have its own websi...
When "throwing" inside a function, is the transaction cancelled? For example, if I send 10 TON from a main account but in a smart contract there an error is ...
one year ago
Is there a size limit for bocs? I've heard values such as 64kb, but I don't know where this limit is defined. --- > This question was imported from Telegram ...
2 years ago
Why is it that during the TonCLI run_tests procedure, already defined comes up even with only having 2 procedures in test file? The error is as follows: [ 1]...
Hi, I transferred my TG NFT username to another wallet, but the transfer has not happened yet. The transaction generated exit code 206. Is this normal? Can s...
2 years ago
What is the byte size of a smart contract that can be deployed on TON? --------- > This question was imported from Telegram Chat: https://t.me/tondev_eng/26332
2 years ago
In TON, messages are used to send data and instructions to smart contracts. Sometimes, these messages can contain large amounts of data such as media files, ...
2 years ago
Hello everyone, please explain: ```` () send_message_back(addr, ans_tag, query_id, body, grams, mode) impure inline_ref { ;; int_msg_info$0 ihr_disabled:Bool...
2 years ago
For example, if you examine the code in detail here: https://github.com/ton-blockchain/payment-channels/blob/e605580c3fb1feb22d80be9a0cddfcd05671c347/func/as...
2 years ago
I've been trying to create a simple wallet smart contract by myself to learn FunC, but my transactions keep failing with exit code 34. What am I doing wrong?...
2 years ago
Where can I find wallet v3r1 and v3r2 FunC code? --- > This question was imported from Telegram Chat: https://t.me/tondev_eng/9027
How do we save an ordinary string in FunC? For example, how do you store the text "A" without making it a slice? --- > This question was imported from Telegr...
What's the best way to debug unexpected test failures? Does FunC have a print function? My test failed on first check: throw_if(100, exit_code != 0); but how...
As far as I understand, code in FunC language compiles to Fift, and then from Fift code the resulting bag of cells is generated. Could I make my code more co...
Are there functions for working with dates in FunC? Is it possible to get the current date or something like that? --- > This question was imported from Tele...
Is there a built-in square root function in the language? And if not, maybe there is a popular library with the optimal implementation? --- > This question w...
Is it possible to call a function in a recursive way in FunC? If so, how exactly should I do it? I haven't found it in the FunC documentation, is it covered ...
Suppose there is a web3 blog platform where people follow specific writers. Each follower has its own smart contract. Usually data such as "X follows Y" woul...
2 years ago
How do you access individual elements of a tuple in FunC using a while loop? As in, say there are 5 values in a tuple. How do I access the "nth" value in my ...
2 years ago
I've been trying to do the following using the uncons function, but it doesn't destructure as I expect it to: (var l, var rvalues) = uncons(values); --- > Th...
Do I get it right that if my smart contract needs to store a string longer than 1023 bits, I should split that thing in parts and make a chain of cells conta...
How is a reference serialized (stored)? --- > This question was imported from Telegram Chat: https://t.me/tondev_eng/9475
It looks like Message X is almost the same as MessageAny. What is the difference? --- > This question was imported from Telegram Chat: https://t.me/tondev_en...
What is the right way to concatenate strings? I've tried this but didn't succeed: .store_slice("start test " + VAR1 + " finish text") --- > This question was...