Skip to content

Commit ec7a4d2

Browse files
Merge pull request #99 from vsys-host/98-new-types-of-trc20-transfers-are-not-detected
Allow multiple TRC20 transfers in single transaction
2 parents 58ab9cf + 1037cfa commit ec7a4d2

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

shkeeper/modules/classes/tron_token.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -70,17 +70,18 @@ def mkaddr(self, **kwargs):
7070
return addr
7171

7272
def getaddrbytx(self, txid):
73-
response = requests.post(
73+
txs = requests.post(
7474
f"http://{self.gethost()}/{self.crypto}/transaction/{txid}",
7575
auth=self.get_auth_creds(),
7676
).json(parse_float=Decimal)
7777
return [
7878
[
79-
response["address"],
80-
Decimal(response["amount"]),
81-
response["confirmations"],
82-
response["category"],
79+
tx["address"],
80+
Decimal(tx["amount"]),
81+
tx["confirmations"],
82+
tx["category"],
8383
]
84+
for tx in txs
8485
]
8586

8687
def get_confirmations_by_txid(self, txid):

0 commit comments

Comments
 (0)