From 37cbb26e4685bc1e59e59e13a0438ab1a2a78848 Mon Sep 17 00:00:00 2001 From: Juan Manuel Rodriguez Defago Date: Fri, 25 Aug 2023 16:19:19 -0300 Subject: [PATCH] fix: removed unnecesary currentVersion load --- src/mappings/gns.ts | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/mappings/gns.ts b/src/mappings/gns.ts index 45d575e..d20a4e0 100644 --- a/src/mappings/gns.ts +++ b/src/mappings/gns.ts @@ -117,9 +117,6 @@ export function handleSubgraphMetadataUpdated(event: SubgraphMetadataUpdated): v let accounts = new Array() accounts.push(graphAccountID) - let subgraphVersion = SubgraphVersion.load(subgraph.currentVersion) as SubgraphVersion - let subgraphDeploymentID = subgraphVersion.subgraphDeployment - let hexHash = changetype(addQm(event.params.subgraphMetadata)) let base58Hash = hexHash.toBase58() @@ -601,9 +598,6 @@ export function handleSubgraphMetadataUpdatedV2(event: SubgraphMetadataUpdated1) let accounts = new Array() accounts.push(graphAccountID) - let subgraphVersion = SubgraphVersion.load(subgraph.currentVersion) as SubgraphVersion - let subgraphDeploymentID = subgraphVersion.subgraphDeployment - let hexHash = changetype(addQm(event.params.subgraphMetadata)) let base58Hash = hexHash.toBase58()