algokit-utils 2.3.0b1__py3-none-any.whl → 2.3.0b2__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of algokit-utils might be problematic. Click here for more details.

@@ -86,7 +86,7 @@ def transfer(client: "AlgodClient", parameters: TransferParameters) -> PaymentTx
86
86
  params = parameters
87
87
  params.suggested_params = parameters.suggested_params or client.suggested_params()
88
88
  from_account = params.from_account
89
- sender = address_from_private_key(from_account.private_key) # type: ignore[no-untyped-call]
89
+ sender = _get_address(from_account)
90
90
  transaction = PaymentTxn(
91
91
  sender=sender,
92
92
  receiver=params.to_address,
@@ -105,7 +105,7 @@ def transfer_asset(client: "AlgodClient", parameters: TransferAssetParameters) -
105
105
 
106
106
  params = parameters
107
107
  params.suggested_params = parameters.suggested_params or client.suggested_params()
108
- sender = address_from_private_key(parameters.from_account.private_key) # type: ignore[no-untyped-call]
108
+ sender = _get_address(parameters.from_account)
109
109
  suggested_params = parameters.suggested_params or client.suggested_params()
110
110
  xfer_txn = AssetTransferTxn(
111
111
  sp=suggested_params,
@@ -139,9 +139,14 @@ def _send_transaction(
139
139
  client.send_transaction(signed_transaction)
140
140
 
141
141
  txid = transaction.get_txid() # type: ignore[no-untyped-call]
142
- logger.debug(
143
- f"Sent transaction {txid} type={transaction.type} from "
144
- f"{address_from_private_key(parameters.from_account.private_key)}" # type: ignore[no-untyped-call]
145
- )
142
+ logger.debug(f"Sent transaction {txid} type={transaction.type} from {_get_address(parameters.from_account)}")
146
143
 
147
144
  return transaction
145
+
146
+
147
+ def _get_address(account: Account | AccountTransactionSigner) -> str:
148
+ if type(account) is Account:
149
+ return account.address
150
+ else:
151
+ address = address_from_private_key(account.private_key) # type: ignore[no-untyped-call]
152
+ return str(address)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: algokit-utils
3
- Version: 2.3.0b1
3
+ Version: 2.3.0b2
4
4
  Summary: Utilities for Algorand development for use by AlgoKit
5
5
  License: MIT
6
6
  Author: Algorand Foundation
@@ -1,7 +1,7 @@
1
1
  algokit_utils/__init__.py,sha256=yeufbE_5wjRILZs_10UD5B3_sjdwAfPXskdFKskzXhg,4963
2
2
  algokit_utils/_debugging.py,sha256=4UC5NZGqxF32y742TUB34rX9kWaObXCCPOs-lbkQjGQ,10732
3
3
  algokit_utils/_ensure_funded.py,sha256=ZdEdUB43QGIQrg7cSSgNrDmWaLSUhli9x9I6juwKfgo,6786
4
- algokit_utils/_transfer.py,sha256=CyXGOR_Zy-2crQhk-78uUbB8Sj_ZeTzxPwOAHU7wwno,5947
4
+ algokit_utils/_transfer.py,sha256=R9q8RoMHiwtqcwQjuGHEluMxIzmYqAsI5WrTsQd24Ds,6021
5
5
  algokit_utils/account.py,sha256=UIuOQZe28pQxjEP9TzhtYlOU20tUdzzS-nIIZM9Bp6Y,7364
6
6
  algokit_utils/application_client.py,sha256=qylA2aI4Ecs532bIs6fyc6FgLnWey9PBzZBZW_jnYtk,59092
7
7
  algokit_utils/application_specification.py,sha256=XusOe7VrGPun2UoNspC9Ei202NzPkxRNx5USXiABuXc,7466
@@ -18,7 +18,7 @@ algokit_utils/logic_error.py,sha256=YeE70qHZ6WBeoKCXqnto3uBg8R4ODXiNZkLmfEmASQo,
18
18
  algokit_utils/models.py,sha256=iJUiV6eLq5N_FKki4X5ll5rYQslU_wSPiSTtl61Z1CI,12803
19
19
  algokit_utils/network_clients.py,sha256=O4nJ3ECms4hFbuB1X64nzTMNOfK1Uj2oyjKxeieri-g,5929
20
20
  algokit_utils/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
21
- algokit_utils-2.3.0b1.dist-info/LICENSE,sha256=J5i7U1Q9Q2c7saUzlvFRmrCCFhQyXb5Juz_LO5omNUw,1076
22
- algokit_utils-2.3.0b1.dist-info/METADATA,sha256=dybj019jKMUl-xvnqX0pKgaKzNT2snOiY_APCekP21Q,2207
23
- algokit_utils-2.3.0b1.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
24
- algokit_utils-2.3.0b1.dist-info/RECORD,,
21
+ algokit_utils-2.3.0b2.dist-info/LICENSE,sha256=J5i7U1Q9Q2c7saUzlvFRmrCCFhQyXb5Juz_LO5omNUw,1076
22
+ algokit_utils-2.3.0b2.dist-info/METADATA,sha256=o9prEi5x37Ryru-KqugNKOsQ3nQYLAeI7_TpzDpKrDE,2207
23
+ algokit_utils-2.3.0b2.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
24
+ algokit_utils-2.3.0b2.dist-info/RECORD,,