File tree 1 file changed +0
-8
lines changed
1 file changed +0
-8
lines changed Original file line number Diff line number Diff line change 1
1
from json import load
2
2
3
3
from starkware .cairo .lang .compiler .program import Program
4
- from starkware .cairo .lang .vm .crypto import pedersen_hash
5
4
from starkware .starknet .compiler .compile import get_entry_points_by_type
6
5
from starkware .starknet .core .os .class_hash import compute_class_hash
7
- from starkware .starknet .public .abi import starknet_keccak
8
6
from starkware .starknet .services .api .contract_class import ContractClass
9
7
from starkware .starknet .testing .contract_utils import get_contract_class
10
8
19
17
abi = contract ["abi" ],
20
18
)
21
19
22
- # contract_class = get_contract_class(contract_class=real_contract)
23
- # contract_class_bytes = contract_class.dumps(sort_keys=True).encode()
24
- # key = starknet_keccak(data=contract_class_bytes)
25
- # print(key)
26
-
27
20
print (
28
- compute_class_hash (get_contract_class (contract_class = real_contract )),
29
21
hex (compute_class_hash (get_contract_class (contract_class = real_contract ))),
30
22
)
You can’t perform that action at this time.
0 commit comments