Skip to content

Commit 2bb5989

Browse files
Fixed extended address information
1 parent 5897068 commit 2bb5989

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

ton-http-api/pyTON/manager.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,12 @@ async def raw_get_account_state(self, address: str, seqno: int = None):
323323
return addr
324324

325325
async def generic_get_account_state(self, address: str, seqno: int = None):
326-
return await self.dispatch_request('generic_get_account_state', address, seqno)
326+
method = 'generic_get_account_state'
327+
try:
328+
addr = await self.dispatch_request(method, address, seqno)
329+
except TonlibError:
330+
addr = await self.dispatch_archival_request(method, address, seqno)
331+
return addr
327332

328333
async def get_token_data(self, address: str):
329334
return await self.dispatch_request('get_token_data', address)

0 commit comments

Comments
 (0)