Skip to content

Commit 55ecc7c

Browse files
committed
[FIX] - from_hex
1 parent 2cd946e commit 55ecc7c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tronapi/tron.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1041,7 +1041,7 @@ def is_address(self, address):
10411041
return False
10421042

10431043
if len(address) == 42:
1044-
address = self.from_hex(address).decode('utf8')
1044+
address = self.address.from_hex(address).decode('utf8')
10451045

10461046
bc = base58.b58decode(address)
10471047
return bc[-4:] == sha256(sha256(bc[:-4]).digest()).digest()[:4]

0 commit comments

Comments
 (0)