Skip to content

Commit

Permalink
don't print error if metamask provider is not available
Browse files Browse the repository at this point in the history
  • Loading branch information
tanguyenvn committed Nov 17, 2023
1 parent 7bb3cfc commit eea28d7
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 eea28d7

Please sign in to comment.