Skip to content

Commit

Permalink
create custom urls for mainnet
Browse files Browse the repository at this point in the history
  • Loading branch information
fmtabbara committed Feb 3, 2022
1 parent a4d84ff commit 7b960fa
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions nym-wallet/src/context/main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,16 @@ import { useHistory } from 'react-router-dom'

export const { ADMIN_ADDRESS } = config

export const urls = (network: Network) => ({
blockExplorer: `https://${network}-blocks.nymtech.net`,
networkExplorer: `https://${network}-explorer.nymtech.net`,
})
export const urls = (network: Network) =>
network === 'MAINNET'
? {
blockExplorer: 'https://blocks.nymtech.net',
networkExplorer: 'https://explorer.nymtech.net',
}
: {
blockExplorer: `https://${network}-blocks.nymtech.net`,
networkExplorer: `https://${network}-explorer.nymtech.net`,
}

type TClientContext = {
mode: 'light' | 'dark'
Expand Down

0 comments on commit 7b960fa

Please sign in to comment.