Skip to content

Commit

Permalink
Revert "Change test env"
Browse files Browse the repository at this point in the history
This reverts commit 5f43832.
  • Loading branch information
tunghp2002 committed Nov 7, 2024
1 parent 7e17f7f commit 9cd53fc
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/extension-base/src/services/swap-service/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export const CHAIN_FLIP_TESTNET_EXPLORER = 'https://blocks-perseverance.chainfli
export const CHAIN_FLIP_MAINNET_EXPLORER = 'https://scan.chainflip.io';

export const TRANSAK_TEST_MODE = process.env.TRANSAK_TEST_MODE !== undefined ? !!process.env.TRANSAK_TEST_MODE : true;
export const TRANSAK_URL = 'https://global-stg.transak.com';
export const TRANSAK_URL = TRANSAK_TEST_MODE ? 'https://global-stg.transak.com' : 'https://global.transak.com';

export const CHAIN_FLIP_SUPPORTED_MAINNET_MAPPING: Record<string, Chain> = {
[COMMON_CHAIN_SLUGS.POLKADOT]: Chains.Polkadot,
Expand Down
2 changes: 1 addition & 1 deletion packages/extension-web-ui/src/constants/buy/transak.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
export const TRANSAK_API_KEY = process.env.TRANSAK_API_KEY || '4b767e2c-2e01-45c9-978e-d32c6f0c8900';
export const TRANSAK_TEST_MODE = process.env.TRANSAK_TEST_MODE !== undefined ? !!process.env.TRANSAK_TEST_MODE : true;

export const TRANSAK_URL = 'https://global-stg.transak.com/';
export const TRANSAK_URL = TRANSAK_TEST_MODE ? 'https://global-stg.transak.com/' : 'https://global.transak.com';
2 changes: 1 addition & 1 deletion packages/extension-web-ui/src/utils/buy/transak.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export const createTransakOrder: CreateBuyOrderFunction = (orderParams) => {
return new Promise((resolve) => {
const location = window.location.origin;
const params: Record<string, string | number | boolean | null> = {
apiKey: '307807a5-5fb3-4add-8a6c-fca4972e0470',
apiKey: TRANSAK_API_KEY,
defaultCryptoCurrency: symbol,
networks: network,
cryptoCurrencyList: symbol,
Expand Down

0 comments on commit 9cd53fc

Please sign in to comment.