Skip to content

Commit

Permalink
fix: missing link for metadata on SubgraphVersioN
Browse files Browse the repository at this point in the history
  • Loading branch information
juanmardefago committed Dec 8, 2023
1 parent d613a85 commit 7f18f5f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/mappings/gns.ts
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,7 @@ export function handleSubgraphPublished(event: SubgraphPublished): void {
let hexHash = changetype<Bytes>(addQm(event.params.versionMetadata))
let base58Hash = hexHash.toBase58()
subgraphVersion.metadataHash = event.params.versionMetadata
subgraphVersion.metadata = base58Hash
subgraphVersion.save()

SubgraphVersionMetadataTemplate.create(base58Hash)
Expand Down Expand Up @@ -1076,6 +1077,7 @@ export function handleSubgraphVersionUpdated(event: SubgraphVersionUpdated): voi
let hexHash = changetype<Bytes>(addQm(event.params.versionMetadata))
let base58Hash = hexHash.toBase58()
subgraphVersion.metadataHash = event.params.versionMetadata
subgraphVersion.metadata = base58Hash
subgraphVersion.save()

SubgraphVersionMetadataTemplate.create(base58Hash)
Expand Down Expand Up @@ -1103,6 +1105,7 @@ export function handleSubgraphVersionUpdated(event: SubgraphVersionUpdated): voi
let hexHash = changetype<Bytes>(addQm(event.params.versionMetadata))
let base58Hash = hexHash.toBase58()
subgraphVersion.metadataHash = event.params.versionMetadata
subgraphVersion.metadata = base58Hash

let oldDeployment: SubgraphDeployment | null = null
if (oldVersionID != null) {
Expand Down

0 comments on commit 7f18f5f

Please sign in to comment.