Skip to content

Commit

Permalink
Workaround to manifest parsing issue
Browse files Browse the repository at this point in the history
  • Loading branch information
juanmardefago committed Apr 26, 2022
1 parent 0406b8c commit 8bf9dce
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/mappings/metadataHelpers.template.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ export function fetchSubgraphDeploymentManifest(deployment: SubgraphDeployment,
deployment.manifest = getManifestFromIPFS.toString()

let manifest = deployment.manifest!
/* Commenting out this, since it might be related to a weird error
// we take the right side of the split, since it's the one which will have the schema ipfs hash
let schemaSplit = manifest.split('schema:\n', 2)[1]
let schemaFileSplit = schemaSplit.split('/ipfs/', 2)[1]
Expand All @@ -118,9 +119,9 @@ export function fetchSubgraphDeploymentManifest(deployment: SubgraphDeployment,
// We get the first occurrence of `network` since subgraphs can only have data sources for the same network
let networkSplit = manifest.split('network: ', 2)[1]
let network = networkSplit.split('\n', 2)[0]

createOrLoadNetwork(network)
deployment.network = network
*/
}
{{/ipfs}}
return deployment as SubgraphDeployment
Expand Down

0 comments on commit 8bf9dce

Please sign in to comment.