Skip to content

Commit

Permalink
Merge pull request #42 from andreasgriffin/bdkpython032_fix
Browse files Browse the repository at this point in the history
 Changes for bdkpython 0.32.0
  • Loading branch information
andreasgriffin authored Jan 1, 2025
2 parents 0ce13d1 + 5245b04 commit e3459e0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions bitcoin_qr_tools/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,7 @@ def to_str(self):
def _try_transaction_binary(cls, raw: bytes) -> Optional[bdk.Transaction]:
# Try each decoding strategy in the loop
try:
return bdk.Transaction(raw)
return bdk.Transaction(list(raw))
except Exception:
return None

Expand All @@ -404,7 +404,7 @@ def _try_decode_serialized_transaction(cls, s: str) -> Optional[bdk.Transaction]
for decode in ConverterTools._decoding_strategies():
try:
decoded = decode(s)
return bdk.Transaction(decoded)
return bdk.Transaction(list(decoded))
except Exception:
continue # If one strategy fails, try the next

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ line-length = 110

[tool.poetry]
name = "bitcoin-qr-tools"
version = "1.0.2"
version = "1.0.3"
authors = ["andreasgriffin <[email protected]>"]
license = "GPL-3.0"
readme = "README.md"
Expand Down

0 comments on commit e3459e0

Please sign in to comment.