Skip to content

Commit

Permalink
Merge pull request #1095 from nymtech/bug-fix/mainnet-blocks-url
Browse files Browse the repository at this point in the history
create custom urls for mainnet
  • Loading branch information
mmsinclair committed Feb 3, 2022
2 parents a4d84ff + 7b960fa commit 99e64a7
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 99e64a7

Please sign in to comment.