Skip to content
This repository has been archived by the owner on Aug 16, 2024. It is now read-only.

Commit

Permalink
Merge pull request #126 from magiclabs/fix/solana-typo
Browse files Browse the repository at this point in the history
fix: typo denvet -> devnet
  • Loading branch information
jamesrp13 authored Jan 24, 2024
2 parents 893bead + 23a2fb7 commit f1c8f21
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion core/utils/templateMappings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ export const buildTemplate = async (appConfig: ConfigType): Promise<ConfigType>
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';
Expand Down
Original file line number Diff line number Diff line change
@@ -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';
Expand All @@ -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)';
Expand All @@ -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}`;
Expand Down

0 comments on commit f1c8f21

Please sign in to comment.