Skip to content

Commit

Permalink
add ef as the default SS58 prefix (#33)
Browse files Browse the repository at this point in the history
  • Loading branch information
zlayine authored Sep 22, 2023
1 parent 680e348 commit a80fec1
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions resources/js/util/address.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}

Expand Down

0 comments on commit a80fec1

Please sign in to comment.