Revert "Do not call eth_chainId for other than ETH networks (#11998)" (#12025)

This reverts commit b8edc4d5ec.
This commit is contained in:
Cepera
2022-01-27 23:11:22 +03:00
committed by GitHub
parent be6d9282dc
commit 6e56cba4f5
8 changed files with 51 additions and 128 deletions
@@ -283,7 +283,7 @@ public class BraveWalletAddNetworksFragment extends Fragment implements Connecti
private void addEthereumChain(EthereumChain chain) {
assert mJsonRpcService != null;
mJsonRpcService.addCustomChain(chain, (chainId, error, errorMessage) -> {
mJsonRpcService.addEthereumChain(chain, (chainId, error, errorMessage) -> {
if (error != ProviderError.SUCCESS) {
return;
}