Chain names updates (#1605)
This commit is contained in:
parent
8bfb3b9f00
commit
4a6db79ab9
@ -2,7 +2,7 @@
|
||||
// This software may be modified and distributed under the terms
|
||||
// of the Apache-2.0 license. See the LICENSE file for details.
|
||||
|
||||
export const UNSAFE_CHAINS = ['Development', 'Kusama CC1', 'Kusama'];
|
||||
export const UNSAFE_CHAINS = ['Development', 'Kusama CC1', 'Kusama CC2', 'Kusama'];
|
||||
|
||||
export default function detectUnsafe (chain: Text | string): boolean {
|
||||
return UNSAFE_CHAINS.includes(chain.toString());
|
||||
|
||||
@ -25,7 +25,8 @@ import substrate from '@polkadot/ui-assets/substrate-hexagon.svg';
|
||||
// overrides based on the actual matched chain name
|
||||
const CHAINS: Record<string, any> = {
|
||||
Kusama: chainKusama, // old name, the W3F nodes still has these
|
||||
'Kusama CC1': chainKusama
|
||||
'Kusama CC1': chainKusama,
|
||||
'Kusama CC2': chainKusama
|
||||
};
|
||||
|
||||
// overrides based on the actual software node type
|
||||
|
||||
@ -23,7 +23,8 @@ const BASE = 'https://polkascan.io/pre/';
|
||||
const CHAINS: Record<string, string> = {
|
||||
Alexander: 'alexander',
|
||||
Kusama: 'kusama', // old name via W3F nodes
|
||||
'Kusama CC1': 'kusama'
|
||||
'Kusama CC1': 'kusama',
|
||||
'Kusama CC2': 'kusama'
|
||||
};
|
||||
|
||||
const TYPES: Record<string, string> = {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user