NEWTON
Asked
6 months ago
3
views
0
How can I find the current contract's address in Cairo? Is there an equivalent to address(this)
from Solidity?
ㅤ This question was originally posted on Triality
0
You can find the contract address by using the library function get_contract_address()
. For example:
from starkware.starknet.common.syscalls import (get_contract_address,)
# ...
let (contract_address) = get_contract_address()
ㅤ This answer was originally posted on Triality
answered
6 months ago
Cairo: Getting the zero address
Getting the CLASS_HASH of a contract in Cairo
Cairo: How to return true from a function?
Cairo: How do I initialize an array in cairo
How can i learn Cairo with Python base?
Testing Starknet Cairo contract function with address
Where can I find a list of decorators available in Cairo?
I can't find info on what `vm_enter_scope` does within hints in the cairo-lang repo
test another new question new
How do I develop against cairo devnet with browser wallets?
How to protect my contract from reentrancy in Cairo Language / StarkNet?
Problem with transfering USDC via Starkgate. Can anyone help?
Cairo Error: Getting Error while setting value of item in array
How to use Pedersen Hash in StarkNet / Cairo Language?