Skip to content

Commit

Permalink
TzktDatasource get_transactions() fix
Browse files Browse the repository at this point in the history
  • Loading branch information
igorsereda committed Oct 10, 2023
1 parent e3b6e64 commit dc85247
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/dipdup/datasources/tezos_tzkt.py
Original file line number Diff line number Diff line change
Expand Up @@ -713,14 +713,16 @@ async def get_transactions(
params = self._get_request_params(
first_level=first_level,
last_level=last_level,
offset=offset,
limit=limit,
select=TRANSACTION_OPERATION_FIELDS,
values=True,
cursor=True,
sort='level',
status='applied',
)

if offset is not None:
params['id.gte'] = offset

if addresses and not code_hashes:
params[f'{field}.in'] = ','.join(addresses)
elif code_hashes and not addresses:
Expand Down
2 changes: 2 additions & 0 deletions src/dipdup/indexes/tezos_tzkt_operations/matcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,8 @@ def match_operation_subgroup(
transaction = handler[2][-1]
if isinstance(transaction, TzktOperationData):
id_list.append(transaction.id)
elif isinstance(transaction, TzktOrigination):
id_list.append(transaction.data.id)
elif isinstance(transaction, TzktTransaction):
id_list.append(transaction.data.id)
else:
Expand Down

0 comments on commit dc85247

Please sign in to comment.