Skip to content

Commit

Permalink
Merge pull request #7 from argentlabs/fix/walletconnect-projId-log
Browse files Browse the repository at this point in the history
fix: add wallet connect log if projectId is the same as default
  • Loading branch information
bluecco authored Oct 9, 2023
2 parents 8bd7f14 + f9d6439 commit aaf0a0e
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 aaf0a0e

Please sign in to comment.