From f9d64393c983db4b467dfaf52dabfa25adada491 Mon Sep 17 00:00:00 2001 From: bluecco Date: Mon, 9 Oct 2023 10:14:34 +0200 Subject: [PATCH] fix: add wallet connect log if projectId is the same as default --- src/connectors/argentMobile/index.ts | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/connectors/argentMobile/index.ts b/src/connectors/argentMobile/index.ts index 395e78c..6759a8d 100644 --- a/src/connectors/argentMobile/index.ts +++ b/src/connectors/argentMobile/index.ts @@ -145,6 +145,21 @@ export class ArgentMobileConnector extends Connector { url, } + if (projectId === DEFAULT_PROJECT_ID) { + console.log("========= NOTICE =========") + console.log( + "While your application will continue to function, we highly recommended", + ) + console.log("signing up for your own API keys.") + console.log( + "Go to WalletConnect Cloud (https://cloud.walletconnect.com) and create a new account.", + ) + console.log( + "Once your account is created, create a new project and collect the Project ID", + ) + console.log("==========================") + } + const _wallet = await getStarknetWindowObject(options) this._wallet = _wallet }