In FunC, is there an equivalent to Solidity's mapping?
from Telegram Chat Import

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 message)? Do I understand correctly that I cannot use tuple for such a case because it has a limit of 256 entries? Are there any best practices for storing such a dynamic list? Similar to a mapping in Solidity.

šŸ”— Answer on TON Overflow

Feb 22, 2023, 2:25 AM
What happens if we verify the source code in the explorer, but the contract's code gets updated using set_code() instruction?
from Telegram Chat Import

What happens if we verify the source code in the explorer, but the contract's code gets updated using setcode() instruction?

Does the verified source code disappears?


| This question was imported from Telegram Chat: https://t.me/tondeveng/23002

šŸ”— Answer on TON Overflow
What specifies the price of a jetton?
from Telegram Chat Import

Where is the line of code that specifies the price of a jetton? Is the price of a jetton always what I choose or does it change with supply and demand?

---

> This question was imported from Telegram Chat:

šŸ”— Answer on TON Overflow
Does store_slice act like store_ref?
from Howard Peng

Does storeslice act like storeref?

For example, If I use store_slice at sending side, and at receiving side use load_ref and begin_parse would it be fine?

I'm trying to understand the underlaying logic of slice and cell.

If not, what's the most efficient way to store slice as ref?

šŸ”— Answer on TON Overflow
Feb 22, 2023, 3:29 AM

Ā© 2024 Draquery.com All rights reserved.