Bump common (#501)

This commit is contained in:
Jaco
2021-07-09 15:34:42 +03:00
committed by GitHub
parent 76e1248c5f
commit ed56f21bcb
12 changed files with 168 additions and 167 deletions
+2 -2
View File
@@ -1,11 +1,11 @@
// Copyright 2017-2021 @polkadot/ui-settings authors & contributors
// SPDX-License-Identifier: Apache-2.0
import known from '@polkadot/networks';
import { selectableNetworks } from '@polkadot/networks';
type ChainDef = string[];
const chains: Record <string, ChainDef> = known
const chains: Record <string, ChainDef> = selectableNetworks
.filter((n) => n.genesisHash.length)
.reduce((chains, { genesisHash, network }) => ({ ...chains, [network]: genesisHash }), {});
+2 -2
View File
@@ -3,7 +3,7 @@
import type { Option } from '../types';
import { available } from '@polkadot/networks';
import { availableNetworks } from '@polkadot/networks';
export const PREFIX_DEFAULT = -1;
@@ -13,7 +13,7 @@ const defaultNetwork: Option = {
value: -1
};
const networks = available.map(({ displayName, network, prefix }) => ({
const networks = availableNetworks.map(({ displayName, network, prefix }) => ({
info: network,
text: displayName,
value: prefix