Describe the bug
Two code examples in the README are missing await on provider.request() calls, which would cause unexpected behavior for anyone copying the examples.
Steps
- See README.md lines 176 and 184
- const addresses = provider.request({ method: 'eth_requestAccounts' });
- provider.request('personal_sign', [...]);
Expected behavior
Both calls should have await since provider.request() returns a Promise:
const addresses = await provider.request({ method: 'eth_requestAccounts' });
await provider.request('personal_sign', [...]);
Version
latest
Additional info
No response
Desktop
No response
Smartphone
No response
Describe the bug
Two code examples in the README are missing
awaitonprovider.request()calls, which would cause unexpected behavior for anyone copying the examples.Steps
Expected behavior
Both calls should have await since provider.request() returns a Promise:
const addresses = await provider.request({ method: 'eth_requestAccounts' });
await provider.request('personal_sign', [...]);
Version
latest
Additional info
No response
Desktop
No response
Smartphone
No response