|
3 | 3 | import pytest |
4 | 4 |
|
5 | 5 | from starknet_py.net.client_models import CasmClass |
6 | | -from starknet_py.net.gateway_client import GatewayClient |
7 | 6 | from starknet_py.net.udc_deployer.deployer import _get_random_salt |
8 | 7 | from starknet_py.tests.e2e.fixtures.constants import CONTRACTS_COMPILED_V1_DIR, MAX_FEE |
9 | 8 | from starknet_py.tests.e2e.fixtures.misc import read_contract |
|
13 | 12 | async def test_cairo1_contract( |
14 | 13 | account, |
15 | 14 | sierra_minimal_compiled_contract_and_class_hash, |
16 | | - another_sierra_minimal_compiled_contract_and_class_hash, |
17 | 15 | gateway_client, |
18 | 16 | ): |
19 | | - # pylint: disable=import-outside-toplevel, too-many-locals |
| 17 | + # pylint: disable=too-many-locals |
| 18 | + # pylint: disable=import-outside-toplevel |
20 | 19 | ( |
21 | 20 | compiled_contract, |
22 | 21 | compiled_class_hash, |
23 | | - ) = ( |
24 | | - sierra_minimal_compiled_contract_and_class_hash |
25 | | - if isinstance(account.client, GatewayClient) |
26 | | - else another_sierra_minimal_compiled_contract_and_class_hash |
27 | | - ) |
| 22 | + ) = sierra_minimal_compiled_contract_and_class_hash |
28 | 23 |
|
29 | 24 | contract_compiled_casm = read_contract( |
30 | | - "minimal_contract_compiled.casm" |
31 | | - if isinstance(account.client, GatewayClient) |
32 | | - else "another_minimal_contract_compiled.casm", |
| 25 | + "minimal_contract_compiled.casm", |
33 | 26 | directory=CONTRACTS_COMPILED_V1_DIR, |
34 | 27 | ) |
35 | 28 |
|
@@ -94,6 +87,6 @@ async def test_cairo1_contract( |
94 | 87 | assert contract_deployment.address != 0 |
95 | 88 |
|
96 | 89 | compiled_class = await gateway_client.get_compiled_class_by_class_hash( |
97 | | - sierra_class_hash |
| 90 | + class_hash=sierra_class_hash |
98 | 91 | ) |
99 | 92 | assert isinstance(compiled_class, CasmClass) |
0 commit comments