NEWTON
Asked
6 months ago
7
views
0
I want to transfer ether in Cairo, can I do this with a payable function? If not, how can I achieve this?
ㅤ This question was originally posted on Triality
0
No Cairo does not have payable functions currently.
However, Ether is an ERC20 so you can use the ERC20 interface to transfer ether as you would any other ERC-20
ㅤ This answer was originally posted on Triality
answered
7 months ago
Cairo: How do I initialize an array in cairo
How can i learn Cairo with Python base?
Cairo: How do I iterate through an array of structs?
Getting the CLASS_HASH of a contract in Cairo
Cairo: How can i approve erc20 and transfer in the same transaction?
Cairo: How do write a log function in Cairo
How do you check if a number is even in Cairo?
开始学习Cairo
Problem with transfering USDC via Starkgate. Can anyone help?
When will Kakarot zkEVM launch on mainnet?
How to calculate the minimum decimal number that can store 20 chars long string as a field element?
How can I change solc compiler version in warp?
Cairo Error: Getting Expected expression of type 'felt', got '__main__.getCurrNumber.Return'
How to create Structs in Cairo Lang for StarkNet?