NEWTON
Asked
11 months ago
17
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
11 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?
My ABIs will be same right? In UI I am assuming I wont have to make any changes
How do I see my Pathfinder logs?
Is Kakarot zkEVM a smart contract or a blockchain?
Are transpiled contracts only interactable with the warp cli?
How to send tokens through StarkNet.py?
What’s the difference between Account Abstraction (AA) and Externally Owned Accounts (EOA)?
Is Kakarot zkEVM a blockchain?