Skip to content

Commit

Permalink
fix: add wallet connect log if projectId is the same as default
Browse files Browse the repository at this point in the history
  • Loading branch information
bluecco committed Oct 9, 2023
1 parent 8bd7f14 commit f9d6439
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/connectors/argentMobile/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit f9d6439

Please sign in to comment.