From 4ba763fb6899d80e502633cda6652a566265c44f Mon Sep 17 00:00:00 2001 From: nessshon Date: Tue, 14 May 2024 14:45:21 +0500 Subject: [PATCH] Add `total` to `JettonsMethod.get_all_holders`. --- pytonapi/async_tonapi/methods/jettons.py | 2 +- pytonapi/tonapi/methods/jettons.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pytonapi/async_tonapi/methods/jettons.py b/pytonapi/async_tonapi/methods/jettons.py index bdea6b6..d8ea334 100644 --- a/pytonapi/async_tonapi/methods/jettons.py +++ b/pytonapi/async_tonapi/methods/jettons.py @@ -54,7 +54,7 @@ async def get_all_holders(self, account_id: str) -> JettonHolders: if len(result.addresses) != limit: break - return JettonHolders(addresses=jetton_holders) + return JettonHolders(addresses=jetton_holders, total=result.total) async def get_all_jettons(self, limit: int = 100, offset: int = 0) -> Jettons: """ diff --git a/pytonapi/tonapi/methods/jettons.py b/pytonapi/tonapi/methods/jettons.py index 9c9ba4b..814cdc3 100644 --- a/pytonapi/tonapi/methods/jettons.py +++ b/pytonapi/tonapi/methods/jettons.py @@ -55,7 +55,7 @@ def get_all_holders(self, account_id: str) -> JettonHolders: if len(result.addresses) != limit: break - return JettonHolders(addresses=jetton_holders) + return JettonHolders(addresses=jetton_holders, total=result.total) def get_all_jettons(self, limit: int = 100, offset: int = 0) -> Jettons: """