We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a6a8c84 commit e99196aCopy full SHA for e99196a
1 file changed
packages/client/src/EIP1193Provider.ts
@@ -32,6 +32,11 @@ export class EIP1193Provider extends ProviderEventEmitter implements ProviderInt
32
try {
33
if (!this.client) throw standardErrors.rpc.internal('MWPClient not initialized');
34
35
+ if (args.method === 'eth_requestAccounts') {
36
+ const accounts = await this.client.handshake();
37
+ return accounts;
38
+ }
39
+
40
return await this.client.request(args);
41
} catch (error) {
42
const { code } = error as { code?: number };
0 commit comments