Skip to content

Commit

Permalink
refactor: default prefix
Browse files Browse the repository at this point in the history
Co-authored-by: roiLeo <medina.leo42@gmail.com>
  • Loading branch information
preschian and roiLeo committed Apr 11, 2023
1 parent 0e2222c commit da66d31
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion composables/usePrefix.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import { DEFAULT_PREFIX } from '@kodadot1/static'
import { getKusamaAssetId } from '@/utils/api/bsx/query'

export default function () {
const { $store } = useNuxtApp()
const route = useRoute()
const storage = useLocalStorage('urlPrefix', { selected: 'bsx' })
const storage = useLocalStorage('urlPrefix', { selected: DEFAULT_PREFIX })

const prefix = ref(
route.params.prefix ||
Expand Down
2 changes: 2 additions & 0 deletions libs/static/src/chains.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ export const CHAINS: Config<ChainProperties> = {
glmr: toChainProperty(1284, 18, 'GLMR', 'https://moonbeam.subscan.io/'),
}

export const DEFAULT_PREFIX: Prefix = 'bsx'

export const chainPrefixes: Prefix[] = [
'bsx',
'rmrk',
Expand Down

0 comments on commit da66d31

Please sign in to comment.