Guys hi! Does anyone know if there is an analog of a constructor in FunC like in Solidity. I’ve tried to declare a main function btw, but got an error «main is already declared»
May 8, 2023, 6:30 PM
Ask chatGPT and paste your code it can fix it probably asap.
May 8, 2023, 6:31 PM
but I just want to know, I thought that it is the most basic stuff in FunC and u guys could help me
and chatgpt is not familiar with FunC btw🥲
Guys, does anyone know how to define a couple cells in the storage of my smart contract?
How to store a second cell in «data»
May 8, 2023, 6:46 PM
You can use storeRef()
May 8, 2023, 6:47 PM
thx bro
up to 4 Ref I can store?
May 8, 2023, 6:47 PM
You can use references to store any amount of cells.
For one cell - 4 refs is a limit
May 8, 2023, 6:48 PM
kk got u
May 8, 2023, 6:48 PM
But you can store refs in these cells too
May 8, 2023, 6:49 PM