What happens if we verify the source code in the explorer, but the contract's code gets updated using set_code() instruction? Does the verified source code d...
one year ago
I have a smart contract that accepts messages from users. I would like to keep a history of requests. How can I save a list of pairs (address, text of the me...
one year ago
There are TIP standards, but are there interfaces (libraries) that I can use when writing smart contracts with FunC? Or should I just attept to follow the st...
one year ago
I am getting an error with TonWeb - "tonweb/src/boc/Cell.js:347 const prefix = serializedBoc.slice(0, 4); TypeError: serializedBoc.slice is not a function." ...
What would be your suggestions on some basic pet projects for studying main concepts of ton? These would be smart contracts to write immidiately after doing ...
I've heard from the TON Spanish DevChat that there exists "Ten Lessons for learning FunC". Are those video lessons? --- > This question was imported from Tel...
Does anyone know or have an example how can I store a static address in FunC? I'm thinking about using the asm command, but I'm not sure what the syntax is f...
Is the function recv_internal required to have certain arguments or is it completely up to what you want the message sender to send you? I've noticed some Fu...
How do you install the FunC plugin in Sublime and Visual Studio? > This question was imported from Telegram Chat: https://t.me/tondev_eng/970 https://t.me/to...
Do I get it right that FunC treats int and (int) (a tuple with only one integer in it) as two different types even though they both are really integers? I ha...
one year ago
In developing for blockchain it's important to save space, so it seems better to store the dates using 32-bit timestamps instead of 64-bit. But blockchain is...
one year ago
Is there any specific reason why single line comments in FunC start with ;; and not something more common like //? It feels very odd. --- > This question was...
one year ago
Is my understanding correct that smart contracts are written in FunC, then compiled into Fift, and deployed on the blockchain, and they can later be interact...
one year ago
Is there any call to get the contract address inside it? I cant find anything like that in tvm https://t.me/tondev_eng/363
one year ago
There are extensions for code editors like Visual Studio Code providing syntax highlighting for FunC. Is there anything like that for the vim editor? --- > T...
Is there a built-in way to exponentiate numbers in FunC? If there isn't and it is up to developer to write a function, probably the community has already wri...
It is probably a silly question, but it is confusing for a newcomer. What is the difference between msg and msg_body, aside from the type difference? --- > T...
one year ago
The TON documentation states that "a variable can be dumped to the debug log by the ~dump function". But where exactly it that log? How can I see it? --- > T...
one year ago
Many programming languages have a ternary operator, such as booleanExpression ? expression1 : expression2 in Java (if booleanExpression equals true, than exp...
In general-purpose languages there often is some form of try. Is there anything like that in FunC I could use to validate data in msg_body? > This question w...
one year ago
In general-purpose languages like Java it is possible to get server time by using things like System.currentTimeMills(). Is there a way to retrieve server ti...
one year ago
It is well known that code written in FunC gets compiled to the Fift language (which is more low-level). But is there a way to go back and turn Fift code fil...
I would like to take a look at the source code of wallet contracts (wallet v3 and v4). As far as I understand, both these contracts are open source, but wher...
Do I get it right that there is no implementation of a floating-point numbers type such as float in FunC? --- > This question was imported from Telegram Chat...
We have a project written in Solidity. How much effort would it take to move such a project to TON? Does it mean a total rewrite from scratch in FunC, or is ...
What determines the purity of a function? A) It must only read the function parameters. B) It can read values outside of the function parameters and return a...
one year ago
How do you hardcode an address in a smart contract? An example in both FunC would be helpful. https://t.me/tondev_eng/4099
one year ago
I see that there is a touch method in the wallet v4 contract: https://github.com/ton-blockchain/wallet-contract/blob/main/func/wallet-v4-code.fc#L90 What exa...
How can I print out something in FunC? https://t.me/tondev_eng/9305
one year ago
What's the difference between addr, and Addr, by the way? https://t.me/tondev_eng/9063
one year ago