diff --git a/resources/js/util/address.ts b/resources/js/util/address.ts index 3ac0200..fa6a8c0 100644 --- a/resources/js/util/address.ts +++ b/resources/js/util/address.ts @@ -2,14 +2,15 @@ import { decodeAddress, encodeAddress } from '@polkadot/util-crypto'; import { u8aToHex, isHex, hexToU8a } from '@polkadot/util'; import { useAppStore } from '~/store'; +const CANARY_MATRIXCHAIN_ID = 9030; +const ENJIN_MATRIXCHAIN_ID = 1110; + function getNetworkId(network: string): number { switch (network) { - case 'efinity': - return 12120; case 'canary': - return 9030; + return CANARY_MATRIXCHAIN_ID; default: - return 12120; + return ENJIN_MATRIXCHAIN_ID; } }