From 23a2fb759b0ae48ce77164dcb8e7737932082a73 Mon Sep 17 00:00:00 2001 From: James Pacheco Date: Wed, 24 Jan 2024 11:36:03 -0700 Subject: [PATCH] fix: typo denvet -> devnet --- core/utils/templateMappings.ts | 2 +- .../template/src/utils/network.ts | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/core/utils/templateMappings.ts b/core/utils/templateMappings.ts index c4885db..897f389 100644 --- a/core/utils/templateMappings.ts +++ b/core/utils/templateMappings.ts @@ -201,7 +201,7 @@ export const buildTemplate = async (appConfig: ConfigType): Promise config.network === 'polygon-mumbai' ) { config.chain = 'evm'; - } else if (config.network === 'solana-denvet' || config.network === 'solana-mainnet') { + } else if (config.network === 'solana-devnet' || config.network === 'solana-mainnet') { config.chain = 'solana'; } else { config.chain = 'flow'; diff --git a/scaffolds/nextjs-solana-dedicated-wallet/template/src/utils/network.ts b/scaffolds/nextjs-solana-dedicated-wallet/template/src/utils/network.ts index d5e1b16..b655ced 100644 --- a/scaffolds/nextjs-solana-dedicated-wallet/template/src/utils/network.ts +++ b/scaffolds/nextjs-solana-dedicated-wallet/template/src/utils/network.ts @@ -1,11 +1,11 @@ export enum Network { - SOLANA_DENVET = 'solana-devnet', + SOLANA_DEVNET = 'solana-devnet', SOLANA_MAINNET_BETA = 'solana-mainnet', } export const getNetworkUrl = () => { switch (process.env.NEXT_PUBLIC_BLOCKCHAIN_NETWORK) { - case Network.SOLANA_DENVET: + case Network.SOLANA_DEVNET: return 'https://solana-devnet.g.alchemy.com/v2/NUZZICdM-417xyZwDhka3615uai5GQFr'; case Network.SOLANA_MAINNET_BETA: return 'https://solana-mainnet.g.alchemy.com/v2/9nCoa06gjvDwYyTdV5ruBp2Qe4_wZnaO'; @@ -16,7 +16,7 @@ export const getNetworkUrl = () => { export const getNetworkName = () => { switch (process.env.NEXT_PUBLIC_BLOCKCHAIN_NETWORK) { - case Network.SOLANA_DENVET: + case Network.SOLANA_DEVNET: return 'Solana (Devnet)'; case Network.SOLANA_MAINNET_BETA: return 'Solana (Mainnet Beta)'; @@ -25,7 +25,7 @@ export const getNetworkName = () => { export const getBlockExplorer = (address: string) => { switch (process.env.NEXT_PUBLIC_BLOCKCHAIN_NETWORK) { - case Network.SOLANA_DENVET: + case Network.SOLANA_DEVNET: return `https://explorer.solana.com/address/${address}?cluster=devnet`; case Network.SOLANA_MAINNET_BETA: return `https://explorer.solana.com/address/${address}`;