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: """