NEWTON
Asked
6 months ago
11
views
0
What is the difference between return and ret?
ㅤ This question was originally posted on Triality
0
Function writes to the stack their return values just before the "ret" instruction. After ret() is executed and the function completes, return values will be available to the caller at [ap - 1], [ap - 2] and so on.
Using the keyword return(), you must return a tuple inside your return statement.
ㅤ This answer was originally posted on Triality
answered
7 months ago
Why am I having trouble deploying my Cairo contract?
What can I do if I've sent transactions from StarkNet to Ethereum L2 -> L1 on mainnet and transaction got stacked?
StarknetErrorCode.ENTRY_POINT_NOT_FOUND_IN_CONTRACT error in Cairo. Can anyone help?
How do I connect my DAPP to a Starknet node using starknetjs?
Does cairo have payable functions?
List of Cairo Decorators
How to write a struct in storage?