tristero 0.1.6__py3-none-any.whl → 0.1.7__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.
tristero/permit2.py CHANGED
@@ -351,7 +351,8 @@ async def approve_permit2(
351
351
  )
352
352
 
353
353
  # Sign and send transaction
354
- signed_tx: SignedTransaction = account.sign_transaction(tx.__dict__)
354
+ tx_data = tx if isinstance(tx, dict) else tx.__dict__
355
+ signed_tx: SignedTransaction = account.sign_transaction(tx_data)
355
356
  tx_hash = await w3.eth.send_raw_transaction(signed_tx.raw_transaction)
356
357
 
357
358
  logger.debug(f"→ Approval tx hash: {tx_hash.hex()}")
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: tristero
3
- Version: 0.1.6
3
+ Version: 0.1.7
4
4
  Summary: Library for trading on Tristero
5
5
  Author: pty1
6
6
  Author-email: pty1 <pty11@proton.me>
@@ -5,8 +5,8 @@ tristero/config.py,sha256=_0PP2gufvq_t-gdKqDrxht2BxoWpNiGXk4m_u57WOYY,530
5
5
  tristero/files/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
6
6
  tristero/files/erc20_abi.json,sha256=jvsJ6aCwhMcmo3Yy1ajt5lPl_nTRg7tv-tGj87xzTOg,12800
7
7
  tristero/files/permit2_abi.json,sha256=NV0AUUA9kqFPk56njvRRzUyjBhrBncKIMd3PrSH0LCc,17817
8
- tristero/permit2.py,sha256=9uEgwwBfYnEzkbIv0jbLybXnthdzHPrZ-gAzzg_a6j4,11338
8
+ tristero/permit2.py,sha256=eBSAYTnnDI2NmOJDx5Px5ae7bSjE_FEmkZZn9wx-uZU,11396
9
9
  tristero/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
10
- tristero-0.1.6.dist-info/WHEEL,sha256=eh7sammvW2TypMMMGKgsM83HyA_3qQ5Lgg3ynoecH3M,79
11
- tristero-0.1.6.dist-info/METADATA,sha256=T4Bd4sXht1JQmLFancmnJxoZ-9r44d7N-sk3DvNcTEI,4384
12
- tristero-0.1.6.dist-info/RECORD,,
10
+ tristero-0.1.7.dist-info/WHEEL,sha256=eh7sammvW2TypMMMGKgsM83HyA_3qQ5Lgg3ynoecH3M,79
11
+ tristero-0.1.7.dist-info/METADATA,sha256=nC7bzXMgELN7Ln80LSu4ArqLGB1YIRSyrHGBjSIpybA,4384
12
+ tristero-0.1.7.dist-info/RECORD,,