Skip to content

Commit

Permalink
Skip test_get_transaction_by_block_id; Add todo
Browse files Browse the repository at this point in the history
  • Loading branch information
franciszekjob committed Jan 27, 2025
1 parent 685b466 commit acaa392
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 1 addition & 2 deletions starknet_py/net/full_node_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ async def get_block(
"price_in_fri": "0x1",
"price_in_wei": "0x1",
}
print(block_identifier)

if block_identifier == {"block_id": "pending"}:
return cast(PendingStarknetBlock, PendingStarknetBlockSchema().load(res))
return cast(StarknetBlock, StarknetBlockSchema().load(res))
Expand Down Expand Up @@ -545,7 +545,6 @@ async def call_contract(
block_identifier = get_block_identifier(
block_hash=block_hash, block_number=block_number
)
print(_to_rpc_felt(call.selector))
res = await self._client.call(
method_name="call",
params={
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,8 @@ async def test_get_class_by_hash(client, class_hash):
# docs-end: get_class_by_hash


# TODO(#1498): Investigate why there are not transactions in latest block
@pytest.mark.skip
@pytest.mark.asyncio
async def test_get_transaction_by_block_id(client):
# docs-start: get_transaction_by_block_id
Expand Down

0 comments on commit acaa392

Please sign in to comment.