Skip to content

Commit

Permalink
Add total to JettonsMethod.get_all_holders.
Browse files Browse the repository at this point in the history
  • Loading branch information
nessshon committed May 14, 2024
1 parent 3dbc9de commit 4ba763f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pytonapi/async_tonapi/methods/jettons.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
"""
Expand Down
2 changes: 1 addition & 1 deletion pytonapi/tonapi/methods/jettons.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
"""
Expand Down

0 comments on commit 4ba763f

Please sign in to comment.