Skip to content

Commit

Permalink
Merge pull request #1079 from oasisprotocol/csillag/improve-faucet-li…
Browse files Browse the repository at this point in the history
…nk-generation

Don't directly include internal enum values in URLs
  • Loading branch information
csillag authored Dec 8, 2023
2 parents 44461fc + 20d2762 commit ad38ca8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions .changelog/1079.internal.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Don't directly include internal enum values in URLs
6 changes: 3 additions & 3 deletions src/app/utils/externalLinks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@ const faucetUrl = 'https://faucet.testnet.oasis.dev/'
const faucetParaTimeBaseUrl = `${faucetUrl}?paratime=`
export const faucet = {
[Layer.consensus]: faucetUrl,
[Layer.emerald]: `${faucetParaTimeBaseUrl}${Layer.emerald}`,
[Layer.sapphire]: `${faucetParaTimeBaseUrl}${Layer.sapphire}`,
[Layer.cipher]: `${faucetParaTimeBaseUrl}${Layer.cipher}`,
[Layer.emerald]: `${faucetParaTimeBaseUrl}emerald`,
[Layer.sapphire]: `${faucetParaTimeBaseUrl}sapphire`,
[Layer.cipher]: `${faucetParaTimeBaseUrl}cipher`,
}

export const api = {
Expand Down

0 comments on commit ad38ca8

Please sign in to comment.