Skip to content
This repository has been archived by the owner on Sep 18, 2024. It is now read-only.

Commit

Permalink
Fix network
Browse files Browse the repository at this point in the history
  • Loading branch information
droserasprout committed Sep 26, 2023
1 parent 21fe408 commit b518a4c
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions tezos_domains/dipdup.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ contracts:
typename: name_registry

datasources:
tzkt_mainnet:
mainnet:
kind: tezos.tzkt
url: ${TZKT_URL:-https://api.tzkt.io}

Expand All @@ -28,7 +28,7 @@ indexes:
tezos_domains_big_map_mainnet:
template: tezos_domains_big_map
values:
datasource: tzkt_mainnet
datasource: mainnet
name_registry: mainnet_name_registry

hooks:
Expand Down
2 changes: 1 addition & 1 deletion tezos_domains/handlers/on_update_expiry_map.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ async def on_update_expiry_map(
metadata = {} if record.metadata is None else cast(dict, record.metadata)
metadata.update(name=record.id)
await ctx.update_contract_metadata(
network=cast(TzktDatasource, ctx.datasource).network,
network=cast(TzktDatasource, ctx.datasource).name,
address=record.address,
metadata=metadata,
)
4 changes: 2 additions & 2 deletions tezos_domains/handlers/on_update_records.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ async def on_update_records(
token_id = store_records.value.tzip12_token_id
if token_id:
await ctx.update_token_metadata(
network=cast(TzktDatasource, ctx.datasource).network,
network=cast(TzktDatasource, ctx.datasource).name,
address=store_records.data.contract_address,
token_id=token_id,
metadata={
Expand Down Expand Up @@ -93,7 +93,7 @@ async def on_update_records(

if store_records.value.address is not None:
await ctx.update_contract_metadata(
network=cast(TzktDatasource, ctx.datasource).network,
network=cast(TzktDatasource, ctx.datasource).name,
address=store_records.value.address,
metadata={**domain_data, 'name': record_name},
)
2 changes: 1 addition & 1 deletion tezos_domains/hooks/check_expiration.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ async def check_expiration(
if record.address:
ctx.logger.debug('Invalidating contract metadata for %s @ %s', record.address, record.id)
await ctx.update_contract_metadata(
network=ds.network,
network=ds.name,
address=record.address,
metadata={}, # TODO: NULL
)

0 comments on commit b518a4c

Please sign in to comment.