From 927a0912f592ffcb4de3e3fd3937a7d26d853b9c Mon Sep 17 00:00:00 2001 From: Lapo4kaKek Date: Thu, 27 Nov 2025 18:47:12 +0000 Subject: [PATCH] fix tryLocateTx for masterchain dest --- pytonlib/client.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pytonlib/client.py b/pytonlib/client.py index 3a5b93a..b63b7e0 100644 --- a/pytonlib/client.py +++ b/pytonlib/client.py @@ -751,7 +751,7 @@ async def try_locate_tx_by_incoming_message(self, source, destination, creation_ src = detect_address(source) dest = detect_address(destination) workchain = dest["raw_form"].split(":")[0] - shards = await self.get_shards(lt=int(creation_lt)) + shards = {'shards': [{'shard': -9223372036854775808}]} if workchain == '-1' else await self.get_shards(lt=int(creation_lt)) for shard_data in shards['shards']: shardchain = shard_data['shard'] @@ -790,7 +790,7 @@ async def try_locate_tx_by_outcoming_message(self, source, destination, creation src = detect_address(source) dest = detect_address(destination) workchain = src["raw_form"].split(":")[0] - shards = await self.get_shards(lt=int(creation_lt)) + shards = {'shards': [{'shard': -9223372036854775808}]} if workchain == '-1' else await self.get_shards(lt=int(creation_lt)) for shard_data in shards['shards']: shardchain = shard_data['shard']