Skip to content

Commit

Permalink
Use old WalletConnect project ID on testnet url
Browse files Browse the repository at this point in the history
  • Loading branch information
jvonasek committed Jun 20, 2024
1 parent d940f2d commit bd04faa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sections/web3-connect/wallets/WalletConnect.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import { noop } from "utils/helpers"
import { EvmParachain } from "@galacticcouncil/xcm-core"

// @TODO: Remove when the old domain is deprecated
const isOldDomain = window?.location?.hostname === "app.hydradx.io"
const isOldDomain = window?.location?.hostname.includes("hydradx.io")

Check failure

Code scanning / CodeQL

Incomplete URL substring sanitization High

'
hydradx.io
' can be anywhere in the URL, and arbitrary hosts may come before or after it.

const WC_PROJECT_ID = isOldDomain
? "c47a5369367ec2dad6b49c478eb772f9"
Expand Down

0 comments on commit bd04faa

Please sign in to comment.