Skip to content

Commit

Permalink
Fix get_delegated_resource_v2 coroutine did not add wait (#107)
Browse files Browse the repository at this point in the history
Co-authored-by: Tang Lang <blank.owq@gmail.com>
  • Loading branch information
owq-1777 and blank-owq committed Mar 14, 2024
1 parent e6a4dc5 commit 167ad29
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tronpy/async_tron.py
Original file line number Diff line number Diff line change
Expand Up @@ -798,7 +798,7 @@ async def get_account_permission(self, addr: TAddress) -> dict:

async def get_delegated_resource_v2(self, fromAddr: TAddress, toAddr: TAddress) -> dict:
"""Query the amount of delegatable resources share of the specified resource type for an address"""
return self.provider.make_request(
return await self.provider.make_request(
"wallet/getdelegatedresourcev2",
{
"fromAddress": keys.to_base58check_address(fromAddr),
Expand Down

0 comments on commit 167ad29

Please sign in to comment.