[#12526] Connecting autofarm.network dapps with status wallet freezes browser

Signed-off-by: andrey <motor4ik@gmail.com>
This commit is contained in:
andrey 2021-09-01 10:47:37 +02:00
parent 2bd4957569
commit 1e94a45339
No known key found for this signature in database
GPG Key ID: 89B67245FD2F0272
1 changed files with 3 additions and 1 deletions

View File

@ -135,8 +135,10 @@
return web3Response(payload, [window.statusAppcurrentAccountAddress])
} else if (payload.method == "eth_coinbase" && (typeof window.statusAppcurrentAccountAddress !== "undefined")) {
return web3Response(payload, window.statusAppcurrentAccountAddress)
} else if (payload.method == "net_version" || payload.method == "eth_chainId"){
} else if (payload.method == "net_version"){
return web3Response(payload, window.statusAppNetworkId)
} else if (payload.method == "eth_chainId"){
return web3Response(payload, "0x" + window.statusAppNetworkId.toString(16))
} else if (payload.method == "eth_uninstallFilter"){
return web3Response(payload, true);
} else {