Skip to content

Commit

Permalink
fix for network name
Browse files Browse the repository at this point in the history
  • Loading branch information
igorgoldobin committed Aug 26, 2024
1 parent 585ad48 commit 25c0afd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/hooks/useIntlNetworkName.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const useIntlNetworkName = (): {
consensusLayerName: string;
} => {
const { formatMessage } = useIntl();
const mainnet = formatMessage({ defaultMessage: 'Mainnet' });
const mainnet = formatMessage({ defaultMessage: 'Strax' });
const executionLayerName: string = IS_MAINNET
? mainnet
: formatMessage(
Expand Down
3 changes: 1 addition & 2 deletions src/pages/ConnectWallet/web3Utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ enum Testnet {
}

enum Mainnet {
'Mainnet',
'Strax',
}

Expand All @@ -70,7 +69,7 @@ export const NetworkNameToChainId: { [key: string]: NetworkChainId } = {
};

export const TARGET_NETWORK_CHAIN_ID = IS_MAINNET
? NetworkChainId.Mainnet
? NetworkChainId.Strax
: NetworkNameToChainId[TESTNET_LAUNCHPAD_NAME];

export const IS_GOERLI = TARGET_NETWORK_CHAIN_ID === NetworkChainId.Strax;
Expand Down

0 comments on commit 25c0afd

Please sign in to comment.