Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion packages/web3-react-agw/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,10 @@ export class AbstractGlobalWallet extends Connector {
await this.isomorphicInitialize();
if (!this.provider) throw new Error('No AGW provider');

await this.provider.request({ method: 'wallet_requestPermissions' });
await this.provider.request({
method: 'wallet_requestPermissions',
params: [{ eth_accounts: {} }],
});
// Wallets may resolve eth_chainId and hang on eth_accounts pending user interaction, which may include changing
// chains; they should be requested serially, with accounts first, so that the chainId can settle.
const accounts = (await this.provider.request({
Expand Down