Skip to content

Commit

Permalink
Merge pull request #5892 from Jarsen136/issue-5887
Browse files Browse the repository at this point in the history
  • Loading branch information
yangwao authored May 10, 2023
2 parents 2a950ae + 16c32fe commit 557478e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 12 deletions.
2 changes: 1 addition & 1 deletion libs/static/src/chains.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export const CHAINS: Config<ChainProperties> = {
glmr: toChainProperty(1284, 18, 'GLMR', 'https://moonbeam.subscan.io/'),
}

export const DEFAULT_PREFIX: Prefix = 'bsx'
export const DEFAULT_PREFIX: Prefix = 'ksm'

export const chainPrefixes: Prefix[] = [
'bsx',
Expand Down
12 changes: 1 addition & 11 deletions utils/chain.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,21 +96,11 @@ export const disableChainListOnBetaEnv = [
'glmr',
'snek',
]
export const disableChainListOnProductionEnv = [
...disableChainListOnBetaEnv,
'ksm',
]

export const availablePrefixes = (): Option[] => {
const chains = chainList()

if (isProduction) {
return chains.filter(
(chain) => !disableChainListOnProductionEnv.includes(String(chain.value))
)
}

if (isBeta) {
if (isProduction || isBeta) {
return chains.filter(
(chain) => !disableChainListOnBetaEnv.includes(String(chain.value))
)
Expand Down

0 comments on commit 557478e

Please sign in to comment.