diff --git a/app/core/background/indexer_service.py b/app/core/background/indexer_service.py index d2d8de6..0f32f7f 100644 --- a/app/core/background/indexer_service.py +++ b/app/core/background/indexer_service.py @@ -49,7 +49,7 @@ async def indexer_loop(memory, platform_found: bool, seqno: int) -> [bool, int]: make_log("Indexer", f"Last known index: {last_known_index}", level="debug") next_item_index = last_known_index + 1 - resolve_item_result = await toncenter.run_get_method(platform.address.to_string(1, 1, 1), 'get_nft_address_by_index', [['num', (lambda x: (lambda y: (f"0{y}" if len(y) % 2 else y))(hex(x)[2:]))(next_item_index)]]) + resolve_item_result = await toncenter.run_get_method(platform.address.to_string(1, 1, 1), 'get_nft_address_by_index', [['num', hex(next_item_index)]]) if resolve_item_result.get('exit_code', -1) != 0: make_log("Indexer", f"Resolve item error: {resolve_item_result}", level="error") return platform_found, seqno