From 7c9cb2725868e901691e2f3592dc066077d344df Mon Sep 17 00:00:00 2001 From: Johnny J Date: Wed, 11 Oct 2023 11:48:12 +0800 Subject: [PATCH] fix: `connectEagerly` will not expose error information, and it is impossible to know whether the connection is successful. --- packages/metamask/src/index.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/metamask/src/index.ts b/packages/metamask/src/index.ts index bd6d7edb1..795754214 100644 --- a/packages/metamask/src/index.ts +++ b/packages/metamask/src/index.ts @@ -115,6 +115,7 @@ export class MetaMask extends Connector { // event, meaning that chainId is updated, and cancelActivation doesn't work because an intermediary // update has occurred, so we reset state instead this.actions.resetState() + throw error } }