88from starknet_py .contract import Contract
99from starknet_py .hash .address import compute_address
1010from starknet_py .hash .casm_class_hash import compute_casm_class_hash
11- from starknet_py .hash .hash_method import HashMethod
1211from starknet_py .hash .selector import get_selector_from_name
1312from starknet_py .hash .storage import get_storage_var_address
1413from starknet_py .net .account .account import Account
2928from starknet_py .net .models import StarknetChainId
3029from starknet_py .tests .e2e .fixtures .constants import MAX_RESOURCE_BOUNDS
3130from starknet_py .tests .e2e .fixtures .misc import ContractVersion , load_contract
32- from starknet_py .tests .e2e .utils import create_empty_block
3331
3432
3533def _parse_event_name (event : str ) -> str :
@@ -146,7 +144,6 @@ async def test_get_storage_at_incorrect_address_full_node_client(client):
146144 "--contract_dir=v1" in sys .argv ,
147145 reason = "Contract exists only in v2 directory" ,
148146)
149- @pytest .mark .skip ("TODO(#1659)" )
150147@pytest .mark .run_on_devnet
151148@pytest .mark .asyncio
152149async def test_get_events_without_following_continuation_token (
@@ -176,7 +173,6 @@ async def test_get_events_without_following_continuation_token(
176173 "--contract_dir=v1" in sys .argv ,
177174 reason = "Contract exists only in v2 directory" ,
178175)
179- @pytest .mark .skip ("TODO(#1659)" )
180176@pytest .mark .run_on_devnet
181177@pytest .mark .asyncio
182178async def test_get_events_follow_continuation_token (
@@ -233,7 +229,6 @@ async def test_get_events_nonexistent_event_name(
233229 "--contract_dir=v1" in sys .argv ,
234230 reason = "Contract exists only in v2 directory" ,
235231)
236- @pytest .mark .skip ("TODO(#1659)" )
237232@pytest .mark .run_on_devnet
238233@pytest .mark .asyncio
239234async def test_get_events_with_two_events (
@@ -287,7 +282,6 @@ async def test_get_events_with_two_events(
287282 "--contract_dir=v1" in sys .argv ,
288283 reason = "Contract exists only in v2 directory" ,
289284)
290- @pytest .mark .skip ("TODO(#1659)" )
291285@pytest .mark .run_on_devnet
292286@pytest .mark .asyncio
293287async def test_get_events_start_from_continuation_token (
@@ -319,7 +313,6 @@ async def test_get_events_start_from_continuation_token(
319313 "--contract_dir=v1" in sys .argv ,
320314 reason = "Contract exists only in v2 directory" ,
321315)
322- @pytest .mark .skip ("TODO(#1659)" )
323316@pytest .mark .run_on_devnet
324317@pytest .mark .asyncio
325318async def test_get_events_no_params (
@@ -361,30 +354,30 @@ async def test_get_events_nonexistent_starting_block(
361354
362355
363356@pytest .mark .asyncio
364- async def test_get_block_number (client ):
357+ async def test_get_block_number (client , devnet_client ):
365358 # pylint: disable=protected-access
366- await create_empty_block ( client . _client )
359+ await devnet_client . create_block ( )
367360
368361 block_number = await client .get_block_number ()
369362
370363 # pylint: disable=protected-access
371- await create_empty_block ( client . _client )
364+ await devnet_client . create_block ( )
372365
373366 new_block_number = await client .get_block_number ()
374367 assert new_block_number == block_number + 1
375368
376369
377370@pytest .mark .asyncio
378- async def test_get_block_hash_and_number (client ):
371+ async def test_get_block_hash_and_number (client , devnet_client ):
379372 # pylint: disable=protected-access
380- await create_empty_block ( client . _client )
373+ await devnet_client . create_block ( )
381374
382375 block_hash_and_number = await client .get_block_hash_and_number ()
383376
384377 assert isinstance (block_hash_and_number , BlockHashAndNumber )
385378
386379 # pylint: disable=protected-access
387- await create_empty_block ( client . _client )
380+ await devnet_client . create_block ( )
388381
389382 new_block_hash_and_number = await client .get_block_hash_and_number ()
390383
@@ -476,7 +469,6 @@ async def test_simulate_transactions_skip_fee_charge(
476469 assert simulated_txs is not None
477470
478471
479- @pytest .mark .skip (reason = "TODO(#1659)" )
480472@pytest .mark .asyncio
481473async def test_simulate_transactions_invoke (account , deployed_balance_contract ):
482474 assert isinstance (deployed_balance_contract , Contract )
@@ -507,7 +499,6 @@ async def test_simulate_transactions_invoke(account, deployed_balance_contract):
507499 assert simulated_txs [0 ].transaction_trace .execution_resources is not None
508500
509501
510- @pytest .mark .skip (reason = "TODO(#1659)" )
511502@pytest .mark .asyncio
512503async def test_simulate_transactions_two_txs (account , deployed_balance_contract ):
513504 assert isinstance (deployed_balance_contract , Contract )
@@ -523,8 +514,7 @@ async def test_simulate_transactions_two_txs(account, deployed_balance_contract)
523514 )
524515
525516 casm_class = create_casm_class (contract ["casm" ])
526- # TODO(#1659): Use blake
527- casm_class_hash = compute_casm_class_hash (casm_class , HashMethod .POSEIDON )
517+ casm_class_hash = compute_casm_class_hash (casm_class )
528518
529519 declare_v3_tx = await account .sign_declare_v3 (
530520 compiled_contract = contract ["sierra" ],
0 commit comments