Skip to content

Commit

Permalink
add new OutMsg Tl-b
Browse files Browse the repository at this point in the history
  • Loading branch information
yungwine committed Sep 13, 2024
1 parent cae9cc7 commit 6fd3f7f
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
12 changes: 12 additions & 0 deletions pytoniq_core/tlb/transaction.py
Original file line number Diff line number Diff line change
Expand Up @@ -1349,6 +1349,18 @@ def deserialize(cls, cell_slice: Slice):
next_addr_pfx=cell_slice.load_uint(64),
import_block_lt=cell_slice.load_uint(64)
)
if tag == '1010':
tag += str(cell_slice.load_bits(1).to01())
if tag == '10100':
return cls('msg_export_new_defer',
out_msg=MsgEnvelope.deserialize(cell_slice.load_ref().begin_parse()),
transaction=Transaction.deserialize(cell_slice.load_ref().begin_parse()),
)
if tag == '10101':
return cls('msg_export_deferred_tr',
out_msg=MsgEnvelope.deserialize(cell_slice.load_ref().begin_parse()),
imported=InMsg.deserialize(cell_slice.load_ref().begin_parse()),
)
raise TransactionError(f'OutMsg deserialization error: unknown prefix tag {tag}')


Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

setuptools.setup(
name="pytoniq-core",
version="0.1.38",
version="0.1.39",
author="Maksim Kurbatov",
author_email="[email protected]",
description="TON Blockchain SDK",
Expand Down

0 comments on commit 6fd3f7f

Please sign in to comment.