Fix HEADER(...) in fromChain typegen (#1941)

This commit is contained in:
Jaco Greeff
2020-02-25 10:08:31 +01:00
committed by GitHub
parent 8acb65931e
commit a7132b4e9c
+1 -1
View File
@@ -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}`)