From 65543fd9f5addead8794196aa7f982603e53d458 Mon Sep 17 00:00:00 2001 From: Calina Cenan Date: Mon, 2 May 2022 17:03:34 +0000 Subject: [PATCH] Fix typo from previous commit. --- ocean_provider/routes/consume.py | 5 ++++- ocean_provider/utils/util.py | 2 +- ocean_provider/validation/algo.py | 5 ++++- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/ocean_provider/routes/consume.py b/ocean_provider/routes/consume.py index 262bcaef..4499ef48 100644 --- a/ocean_provider/routes/consume.py +++ b/ocean_provider/routes/consume.py @@ -10,7 +10,10 @@ from ocean_provider.myapp import app from ocean_provider.requests_session import get_requests_session from ocean_provider.user_nonce import get_nonce, update_nonce -from ocean_provider.utils.asset import get_asset_from_metadatastore, check_asset_consumable +from ocean_provider.utils.asset import ( + get_asset_from_metadatastore, + check_asset_consumable, +) from ocean_provider.utils.basics import ( LocalFileAdapter, get_provider_wallet, diff --git a/ocean_provider/utils/util.py b/ocean_provider/utils/util.py index cf7f8675..17ad231a 100644 --- a/ocean_provider/utils/util.py +++ b/ocean_provider/utils/util.py @@ -182,6 +182,6 @@ def sign_send_and_wait_for_receipt( web3: Web3, transaction: TxParams, from_account: LocalAccount ) -> Tuple[HexStr, TxReceipt]: """Returns the transaction id and transaction receipt.""" - transaction_id, transaction_hash = sign_and_send(web3, transaction, from_account) + transaction_hash, transaction_id = sign_and_send(web3, transaction, from_account) return (transaction_id, web3.eth.wait_for_transaction_receipt(transaction_hash)) diff --git a/ocean_provider/validation/algo.py b/ocean_provider/validation/algo.py index 0aeaac76..faa58988 100644 --- a/ocean_provider/validation/algo.py +++ b/ocean_provider/validation/algo.py @@ -7,7 +7,10 @@ from ocean_provider.constants import BaseURLs from ocean_provider.serializers import StageAlgoSerializer -from ocean_provider.utils.asset import get_asset_from_metadatastore, check_asset_consumable +from ocean_provider.utils.asset import ( + get_asset_from_metadatastore, + check_asset_consumable, +) from ocean_provider.utils.basics import get_config, get_metadata_url from ocean_provider.utils.datatoken import ( record_consume_request,