In FunC, is there an equivalent to Solidity's mapping?
In FunC, is there an equivalent to Solidity's mapping?
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.
---
> This question was imported from Telegram Chat: https://t.me/tondev_eng/9905
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.
#smart-contract
#solidity
#func
In FunC, is there an equivalent to Solidity's mapping?
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.