NEWTON
Asked
6 months ago
9
views
0
When deploying contract2 from contract1 in Cairo, I need to get the CLASS_HASH. How do I achieve this?
ㅤ This question was originally posted on Triality
0
You can do the same thing as deploy just change one keyword to declare. This w
First compile you code.
starknet-compile contract2.cairo \
--output contract2_compiled.json \
--abi contract2_abi.json
Then declare it to get the contract class hash
starknet declare --contract contract2_compiled.json
ㅤ This answer was originally posted on Triality
answered
7 months ago
Cairo: How do I initialize an array in cairo
Cairo: How do I find the current contract's address?
Cairo: Getting function selector
Does cairo have payable functions?
Cairo: Getting the squared summation of felts in an array
How can i learn Cairo with Python base?
How do you check if a number is even in Cairo?
How to use Pedersen Hash in StarkNet / Cairo Language?
Is there a threshold of optimum transaction speed/cost in L2s?
AssertionError with range_check_ptr_ptr
Expect function call to fail in cairo?
Is there a way to accelerate pytest for cairo contract?
Cairo: Getting the zero address
The only way to invoke a contract is using migrations (this applies for both devnet and testnet?)