Skip to content

Commit 66cd50c

Browse files
committed
fix: ci checks
1 parent 0b1fb2c commit 66cd50c

File tree

1 file changed

+20
-8
lines changed

1 file changed

+20
-8
lines changed

mech_client/marketplace_interact.py

+20-8
Original file line numberDiff line numberDiff line change
@@ -370,8 +370,6 @@ def send_offchain_marketplace_request( # pylint: disable=too-many-arguments,too
370370
:type method_args_data: MechMarketplaceRequestConfig
371371
:param extra_attributes: Extra attributes to be included in the request metadata.
372372
:type extra_attributes: Optional[Dict[str,Any]]
373-
:param price: The price for the request (default: 10_000_000_000_000_000).
374-
:type price: int
375373
:param retries: Number of retries for sending a transaction
376374
:type retries: int
377375
:param timeout: Timeout to wait for the transaction
@@ -543,12 +541,26 @@ def wait_for_offchain_marketplace_data(request_id: str) -> Any:
543541

544542

545543
def check_prepaid_balances(
546-
crypto,
547-
ledger_api,
548-
mech_payment_balance_tracker,
549-
payment_type,
550-
max_delivery_rate,
551-
):
544+
crypto: Crypto,
545+
ledger_api: EthereumApi,
546+
mech_payment_balance_tracker: str,
547+
payment_type: str,
548+
max_delivery_rate: int,
549+
) -> None:
550+
"""
551+
Checks the requester's prepaid balances for native and token mech.
552+
553+
:param crypto: The cryptographic object.
554+
:type crypto: Crypto
555+
:param ledger_api: The Ethereum API used for interacting with the ledger.
556+
:type ledger_api: EthereumApi
557+
:param mech_payment_balance_tracker: The mech's balance tracker contract address.
558+
:type mech_payment_balance_tracker: str
559+
:param payment_type: The payment type of the mech.
560+
:type payment_type: str
561+
:param max_delivery_rate: The max_delivery_rate of the mech
562+
:type max_delivery_rate: int
563+
"""
552564
requester = crypto.address
553565
if payment_type == PAYMENT_TYPE_NATIVE:
554566
with open(

0 commit comments

Comments
 (0)