Skip to content

Commit

Permalink
change func name get_account_bandwith to get_bandwidth
Browse files Browse the repository at this point in the history
  • Loading branch information
yxy committed Jun 17, 2022
1 parent 7ca39e1 commit 3098314
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tronpy/tron.py
Original file line number Diff line number Diff line change
Expand Up @@ -598,7 +598,7 @@ def get_account_balance(self, addr: TAddress) -> Decimal:
info = self.get_account(addr)
return Decimal(info.get("balance", 0)) / 1_000_000

def get_account_bandwidth(self, addr: TAddress) -> int:
def get_bandwidth(self, addr: TAddress) -> int:
"""Query the bandwidth of the account"""
ret = self.provider.make_request(
"wallet/getaccountnet", {"address": keys.to_base58check_address(addr)}
Expand Down

0 comments on commit 3098314

Please sign in to comment.