Skip to content

Commit 7548fd5

Browse files
committed
remove some comments from compute class hash
1 parent f72859f commit 7548fd5

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

compute_class_hash.py

-8
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
from json import load
22

33
from starkware.cairo.lang.compiler.program import Program
4-
from starkware.cairo.lang.vm.crypto import pedersen_hash
54
from starkware.starknet.compiler.compile import get_entry_points_by_type
65
from starkware.starknet.core.os.class_hash import compute_class_hash
7-
from starkware.starknet.public.abi import starknet_keccak
86
from starkware.starknet.services.api.contract_class import ContractClass
97
from starkware.starknet.testing.contract_utils import get_contract_class
108

@@ -19,12 +17,6 @@
1917
abi=contract["abi"],
2018
)
2119

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-
2720
print(
28-
compute_class_hash(get_contract_class(contract_class=real_contract)),
2921
hex(compute_class_hash(get_contract_class(contract_class=real_contract))),
3022
)

0 commit comments

Comments
 (0)