From 7f20d3e6cf9a84522970b7fbcbfeb41da61c25b9 Mon Sep 17 00:00:00 2001 From: Tom French Date: Wed, 17 Feb 2021 18:46:50 +0000 Subject: [PATCH] fix: properly inject network name into subgraph.yaml --- templatify.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templatify.ts b/templatify.ts index 2458837..54283fe 100644 --- a/templatify.ts +++ b/templatify.ts @@ -34,7 +34,7 @@ function getNetworkNameForSubgraph(): string | null { ); const networkName = process.env.NETWORK_NAME || getNetworkNameForSubgraph(); - const network = networks[networkName || '']; + const network = { ...networks[networkName || ''], networkName }; if (!networkName) { throw new Error(