From a7132b4e9cb5547e698e594e1cd0b787e1968a7d Mon Sep 17 00:00:00 2001 From: Jaco Greeff Date: Tue, 25 Feb 2020 10:08:31 +0100 Subject: [PATCH] Fix HEADER(...) in fromChain typegen (#1941) --- packages/typegen/src/fromChain.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/typegen/src/fromChain.ts b/packages/typegen/src/fromChain.ts index 9c20349fb1..1885ecd0c3 100644 --- a/packages/typegen/src/fromChain.ts +++ b/packages/typegen/src/fromChain.ts @@ -27,7 +27,7 @@ function generate (metaHex: string, pkg: string | undefined, output: string, isS writeFile(path.join(process.cwd(), output, 'augment-api.ts'), (): string => [ - HEADER, + HEADER('chain'), ...[ '@polkadot/api/augment/rpc', ...['consts', 'query', 'tx'].filter((key) => !!key).map((key) => `./augment-api-${key}`)