Skip to content

Commit

Permalink
reduce timeout for metamask adapter
Browse files Browse the repository at this point in the history
  • Loading branch information
chaitanyapotti committed Nov 21, 2023
1 parent 1e4fe62 commit d0889f1
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, silent: true })) as EthereumProvider;
this.metamaskProvider = (await detectEthereumProvider({ mustBeMetaMask: true, silent: true, timeout: 1000 })) 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 d0889f1

Please sign in to comment.