Skip to content

Commit

Permalink
alert on v1
Browse files Browse the repository at this point in the history
  • Loading branch information
BitHighlander committed Jul 4, 2023
1 parent d8ca2b9 commit a940c9d
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,10 @@ export const ConnectModal: FC<Props> = ({ isOpen, onClose, scannedQr }) => {
const handleConnect = useCallback(
async (values: FormValues) => {
if (!values) values = getValues()
//if wallet-connect v1 show warning!
if (values.uri.includes('bridge.walletconnect.org')) {
alert("Wallet Connect v1 has been shutdown, please inform the Dapp developers that gave you this connection string they need upgrade to v2.")
}
await connect(values.uri)
onClose()
},
Expand Down

0 comments on commit a940c9d

Please sign in to comment.