From 1c0841a4d30b51be4dbac171e3e020ad25b7b0a8 Mon Sep 17 00:00:00 2001 From: juanmardefago Date: Tue, 21 Nov 2023 20:19:06 -0300 Subject: [PATCH] fix: missing link for metadata on SubgraphVersioN --- src/mappings/gns.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/mappings/gns.ts b/src/mappings/gns.ts index 3ecb1873..c91899e6 100644 --- a/src/mappings/gns.ts +++ b/src/mappings/gns.ts @@ -236,6 +236,7 @@ export function handleSubgraphPublished(event: SubgraphPublished): void { let hexHash = changetype(addQm(event.params.versionMetadata)) let base58Hash = hexHash.toBase58() subgraphVersion.metadataHash = event.params.versionMetadata + subgraphVersion.metadata = base58Hash subgraphVersion.save() SubgraphVersionMetadataTemplate.create(base58Hash) @@ -1076,6 +1077,7 @@ export function handleSubgraphVersionUpdated(event: SubgraphVersionUpdated): voi let hexHash = changetype(addQm(event.params.versionMetadata)) let base58Hash = hexHash.toBase58() subgraphVersion.metadataHash = event.params.versionMetadata + subgraphVersion.metadata = base58Hash subgraphVersion.save() SubgraphVersionMetadataTemplate.create(base58Hash) @@ -1103,6 +1105,7 @@ export function handleSubgraphVersionUpdated(event: SubgraphVersionUpdated): voi let hexHash = changetype(addQm(event.params.versionMetadata)) let base58Hash = hexHash.toBase58() subgraphVersion.metadataHash = event.params.versionMetadata + subgraphVersion.metadata = base58Hash let oldDeployment: SubgraphDeployment | null = null if (oldVersionID != null) {