Allow Ledger support for Dock (#4340)

* Allow Ledger support for Dock

Signed-off-by: lovesh <lovesh.bond@gmail.com>

* Import genesis hash from network package

Signed-off-by: lovesh <lovesh.bond@gmail.com>
This commit is contained in:
Lovesh Harchandani 2021-01-08 20:26:08 +05:30 committed by GitHub
parent f87ccbbb1e
commit bdcae7cae6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 1 deletions

View File

@ -20,3 +20,5 @@ export const POLKADOT_GENESIS = getGenesis('polkadot');
export const POLKADOT_DENOM_BLOCK = new BN(1248328);
export const KULUPU_GENESIS = getGenesis('kulupu');
export const DOCK_GENESIS = getGenesis('dock-mainnet');

View File

@ -1,10 +1,11 @@
// Copyright 2017-2021 @polkadot/apps-config authors & contributors
// SPDX-License-Identifier: Apache-2.0
import { KUSAMA_GENESIS, POLKADOT_GENESIS } from '../api/constants';
import { DOCK_GENESIS, KUSAMA_GENESIS, POLKADOT_GENESIS } from '../api/constants';
// mapping of the genesisHash with the actual app name for Ledger
export const ledgerChains = [
[DOCK_GENESIS, 'dock'],
[KUSAMA_GENESIS, 'kusama'],
[POLKADOT_GENESIS, 'polkadot']
];