From 1e94a453396559ec5860fdb2015d1365d3e69ae6 Mon Sep 17 00:00:00 2001 From: andrey Date: Wed, 1 Sep 2021 10:47:37 +0200 Subject: [PATCH] [#12526] Connecting autofarm.network dapps with status wallet freezes browser Signed-off-by: andrey --- resources/js/provider.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/resources/js/provider.js b/resources/js/provider.js index 6f9eb7bfb8..73aa3620bf 100644 --- a/resources/js/provider.js +++ b/resources/js/provider.js @@ -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 {