Skip to content

Commit e99196a

Browse files
committed
handshake in 1193 wrapper
1 parent a6a8c84 commit e99196a

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

packages/client/src/EIP1193Provider.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,11 @@ export class EIP1193Provider extends ProviderEventEmitter implements ProviderInt
3232
try {
3333
if (!this.client) throw standardErrors.rpc.internal('MWPClient not initialized');
3434

35+
if (args.method === 'eth_requestAccounts') {
36+
const accounts = await this.client.handshake();
37+
return accounts;
38+
}
39+
3540
return await this.client.request(args);
3641
} catch (error) {
3742
const { code } = error as { code?: number };

0 commit comments

Comments
 (0)