Skip to content

Commit

Permalink
Merge pull request #1637 from Web3Auth/fix/metamask-adapter
Browse files Browse the repository at this point in the history
Don't print error if metamask provider is not available
  • Loading branch information
chaitanyapotti authored Nov 17, 2023
2 parents 7bb3cfc + eea28d7 commit b7bf5d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/adapters/metamask-adapter/src/metamaskAdapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ class MetamaskAdapter extends BaseEvmAdapter<void> {
async init(options: AdapterInitOptions = {}): Promise<void> {
await super.init(options);
super.checkInitializationRequirements();
this.metamaskProvider = (await detectEthereumProvider({ mustBeMetaMask: true })) as EthereumProvider;
this.metamaskProvider = (await detectEthereumProvider({ mustBeMetaMask: true, silent: true })) as EthereumProvider;
if (!this.metamaskProvider) throw WalletInitializationError.notInstalled("Metamask extension is not installed");
this.status = ADAPTER_STATUS.READY;
this.emit(ADAPTER_EVENTS.READY, WALLET_ADAPTERS.METAMASK);
Expand Down

0 comments on commit b7bf5d2

Please sign in to comment.