Commit 360c5e2c authored by Zach Pomerantz's avatar Zach Pomerantz Committed by GitHub

fix: fallback to eth_accounts in eip1193 bridge (#3516)

parent 72678ee6
......@@ -16,6 +16,12 @@ class Eip1193Bridge extends ExperimentalEip1193Bridge {
const result = await this.provider.getNetwork()
return '0x' + result.chainId.toString(16)
}
case 'eth_requestAccounts':
try {
return await super.send(method, params)
} catch (e) {
return this.send('eth_accounts')
}
case 'eth_sendTransaction': {
if (!this.signer) break
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment