Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
zlayine committed Sep 22, 2023
1 parent 4cd647d commit eaec0fa
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions resources/js/util/address.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@ import { decodeAddress, encodeAddress } from '@polkadot/util-crypto';
import { u8aToHex, isHex, hexToU8a } from '@polkadot/util';
import { useAppStore } from '~/store';

const CANARY_NETWORK_ID = 9030;
const ENJIN_NETWORK_ID = 1110;
const CANARY_MATRIXCHAIN_ID = 9030;
const ENJIN_MATRIXCHAIN_ID = 1110;

function getNetworkId(network: string): number {
switch (network) {
case 'canary':
return CANARY_NETWORK_ID;
return CANARY_MATRIXCHAIN_ID;
default:
return ENJIN_NETWORK_ID;
return ENJIN_MATRIXCHAIN_ID;
}
}

Expand Down

0 comments on commit eaec0fa

Please sign in to comment.