Skip to content

Commit

Permalink
Merge pull request #7 from graphprotocol/juanmardefago/fix-l2gns-meta…
Browse files Browse the repository at this point in the history
…data-updated

fix: removed unnecesary currentVersion load
  • Loading branch information
juanmardefago authored Aug 25, 2023
2 parents 9a84fca + 37cbb26 commit e6e0e04
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/mappings/gns.ts
Original file line number Diff line number Diff line change
Expand Up @@ -117,9 +117,6 @@ export function handleSubgraphMetadataUpdated(event: SubgraphMetadataUpdated): v
let accounts = new Array<String>()
accounts.push(graphAccountID)

let subgraphVersion = SubgraphVersion.load(subgraph.currentVersion) as SubgraphVersion
let subgraphDeploymentID = subgraphVersion.subgraphDeployment

let hexHash = changetype<Bytes>(addQm(event.params.subgraphMetadata))
let base58Hash = hexHash.toBase58()

Expand Down Expand Up @@ -601,9 +598,6 @@ export function handleSubgraphMetadataUpdatedV2(event: SubgraphMetadataUpdated1)
let accounts = new Array<String>()
accounts.push(graphAccountID)

let subgraphVersion = SubgraphVersion.load(subgraph.currentVersion) as SubgraphVersion
let subgraphDeploymentID = subgraphVersion.subgraphDeployment

let hexHash = changetype<Bytes>(addQm(event.params.subgraphMetadata))
let base58Hash = hexHash.toBase58()

Expand Down

0 comments on commit e6e0e04

Please sign in to comment.