Skip to content

Commit

Permalink
chore: change env logic
Browse files Browse the repository at this point in the history
  • Loading branch information
canhtrinh committed Feb 6, 2024
1 parent 261b7b9 commit ca31d5b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions cli/wizard/commands/list-squid-token/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -208,9 +208,7 @@ function parseAsInterchainTokenConfig(
}

function getEnvironmentFromUrl(tokenDetailsUrl: string) {
return tokenDetailsUrl.startsWith("https://interchain.axelar.dev")
? "mainnet"
: "testnet";
return tokenDetailsUrl?.includes("testnet") ? "testnet" : "mainnet";
}

function convertToCamelCase(input: string) {
Expand Down

0 comments on commit ca31d5b

Please sign in to comment.