NEWTON
Asked
4 months ago
3
views
0
Is memory immutable in Cairo? In what situations is it and in what situations is it not?
ㅤ This question was originally posted on Triality
0
Memory is always immutable in Cairo. You cannot overwrite a location in memory. When you initialize an array, you can use assert to write to a location in the memory array if nothing has been written there yet. Once you have asserted once, you cannot change the value in that memory address
ㅤ This answer was originally posted on Triality
answered
4 months ago
How to protect my contract from reentrancy in Cairo Language / StarkNet?
How can I use meta-class of contract (starknetjs) for interaction?
What can I do if I've sent transactions from StarkNet to Ethereum L2 -> L1 on mainnet and transaction got stacked?
Cairo: How do I iterate through an array of structs?
What is ArgentX?
Fixed Point pow operation error
What should I use to execute abi.encodePacked from solidity in starknet?