Hi there guys, how can I make an in place replacement of the bytes in a cell? For example, if I have a cell like, begin_cell().store_uint(val, 8).end_cell(), is it possible to change the cell? Like to change those 8 bytes for another one, without creating a new cell, like an inplace replacement. Is it possible at all? Maybe with in a slice.

Aug 13, 2023, 5:59 PM
I haven't found a way, so I'm thinking that maybe is not possible and made on that way on purpose. Let me know if I'm wrong in any case. Thanks in advance
Aug 13, 2023, 6:00 PM
Thanks
Aug 13, 2023, 6:03 PM
No, the cells are immutable, partially because you can cheaply calculate the cell hash.
You can use https://tonconsole.com/faucet to buy testnet coins (🤣) faster.
Aug 13, 2023, 6:53 PM
1 TON : 0.05 testTON!! 🥵🥵🥵
Aug 13, 2023, 11:12 PM

© 2024 Draquery.com All rights reserved.