fix: provider chainid format
This commit is contained in:
parent
499d99a185
commit
46f9e1fc93
|
@ -970,8 +970,10 @@ You may add additional accurate notices of copyright ownership.
|
||||||
return web3Response(payload, [window.statusAppcurrentAccountAddress])
|
return web3Response(payload, [window.statusAppcurrentAccountAddress])
|
||||||
} else if (payload.method == "eth_coinbase" && (typeof window.statusAppcurrentAccountAddress !== "undefined")) {
|
} else if (payload.method == "eth_coinbase" && (typeof window.statusAppcurrentAccountAddress !== "undefined")) {
|
||||||
return web3Response(payload, window.statusAppcurrentAccountAddress)
|
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())
|
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"){
|
} else if (payload.method == "eth_uninstallFilter"){
|
||||||
return web3Response(payload, true);
|
return web3Response(payload, true);
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue