Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

actually parse external address of MsgAddressExt #55

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions pytonlib/utils/tlb.py
Original file line number Diff line number Diff line change
Expand Up @@ -413,15 +413,16 @@ def __init__(self, cell_slice):
self.type = 'addr_none'
elif prefix == bitarray('01'):
self.type = 'addr_extern'
cell_slice.read_next(cell_slice.bits_left()) #TODO: parse len and external_address
self.len = cell_slice.read_uint(9)
self.external_address = cell_slice.read_next(self.len)

class MsgAddressInt:
"""
anycast_info$_ depth:(#<= 30) { depth >= 1 }
rewrite_pfx:(bits depth) = Anycast;
addr_std$10 anycast:(Maybe Anycast)
addr_std$10 anycast:(Maybe Anycast)
workchain_id:int8 address:bits256 = MsgAddressInt;
addr_var$11 anycast:(Maybe Anycast) addr_len:(## 9)
addr_var$11 anycast:(Maybe Anycast) addr_len:(## 9)
workchain_id:int32 address:(bits addr_len) = MsgAddressInt;
"""
def __init__(self, cell_slice):
Expand Down