Skip to content
This repository has been archived by the owner on Sep 14, 2023. It is now read-only.

Commit

Permalink
feat: update parachain config type
Browse files Browse the repository at this point in the history
  • Loading branch information
kratico committed May 5, 2023
1 parent 0326260 commit edfed8c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion nets/DevRelaySpec.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { Narrow } from "../deps/scale.ts"
import {
addAuthorities,
addDevUsers,
Expand Down Expand Up @@ -41,7 +42,7 @@ export class DevRelaySpec extends DevNetSpec {
if (parachainInfo.length) {
genesisConfig.paras?.paras.push(
...parachainInfo.map(({ id, genesis: [state, wasm] }) =>
[id, [state, wasm, true]] as NonNullable<GenesisConfig["paras"]>["paras"][number]
[id, [state, wasm, true]] satisfies Narrow
),
)
addXcmHrmpChannels(genesisConfig, parachainInfo.map(({ id }) => id))
Expand Down

0 comments on commit edfed8c

Please sign in to comment.