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

* Enabled import for filecoin accounts

* Do not validate non-ETH networks
This commit is contained in:
Cepera
2022-01-26 20:08:25 +03:00
committed by GitHub
parent 74128f6903
commit b8edc4d5ec
8 changed files with 132 additions and 55 deletions
@@ -283,7 +283,7 @@ public class BraveWalletAddNetworksFragment extends Fragment implements Connecti
private void addEthereumChain(EthereumChain chain) {
assert mJsonRpcService != null;
mJsonRpcService.addEthereumChain(chain, (chainId, error, errorMessage) -> {
mJsonRpcService.addCustomChain(chain, (chainId, error, errorMessage) -> {
if (error != ProviderError.SUCCESS) {
return;
}