Skip to content

Commit

Permalink
Fix typo from previous commit.
Browse files Browse the repository at this point in the history
  • Loading branch information
calina-c committed May 2, 2022
1 parent 825e351 commit 65543fd
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
5 changes: 4 additions & 1 deletion ocean_provider/routes/consume.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion ocean_provider/utils/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))
5 changes: 4 additions & 1 deletion ocean_provider/validation/algo.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 65543fd

Please sign in to comment.