From a34160fe9c66c2b0f735b32b4e150ba368e471b7 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) {