fix: provider chainid format

This commit is contained in:
Richard Ramos 2021-11-04 09:04:36 -04:00 committed by Iuri Matias
parent 499d99a185
commit 46f9e1fc93
1 changed files with 3 additions and 1 deletions

View File

@ -970,8 +970,10 @@ You may add additional accurate notices of copyright ownership.
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, backend.networkId.toString())
} else if (payload.method == "eth_chainId"){
return web3Response(payload, "0x" + backend.networkId.toString(16))
} else if (payload.method == "eth_uninstallFilter"){
return web3Response(payload, true);
} else {