@toruslabs/ethereum-controllers 5.2.9 → 5.2.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -727,7 +727,7 @@ const SUPPORTED_NETWORKS = {
727
727
  [MAINNET_CHAIN_ID]: {
728
728
  blockExplorerUrl: "https://etherscan.io",
729
729
  chainId: MAINNET_CHAIN_ID,
730
- displayName: "Main Ethereum Network",
730
+ displayName: "Ethereum",
731
731
  logo: "eth.svg",
732
732
  rpcTarget: `https://mainnet.infura.io/v3/${INFURA_KEY}`,
733
733
  ticker: "ETH",
@@ -736,7 +736,7 @@ const SUPPORTED_NETWORKS = {
736
736
  [POLYGON_CHAIN_ID]: {
737
737
  blockExplorerUrl: "https://polygonscan.com",
738
738
  chainId: POLYGON_CHAIN_ID,
739
- displayName: "Polygon Mainnet",
739
+ displayName: "Polygon",
740
740
  logo: "matic-network-logo.svg",
741
741
  rpcTarget: `https://polygon-mainnet.infura.io/v3/${INFURA_KEY}`,
742
742
  ticker: "MATIC",
@@ -745,7 +745,7 @@ const SUPPORTED_NETWORKS = {
745
745
  [BSC_MAINNET_CHAIN_ID]: {
746
746
  blockExplorerUrl: "https://bscscan.com",
747
747
  chainId: BSC_MAINNET_CHAIN_ID,
748
- displayName: "Binance Smart Chain Mainnet",
748
+ displayName: "Binance Smart Chain (BSC)",
749
749
  logo: "bnb.png",
750
750
  rpcTarget: `https://bsc-dataseed.binance.org`,
751
751
  ticker: "BNB",
@@ -754,7 +754,7 @@ const SUPPORTED_NETWORKS = {
754
754
  [AVALANCHE_MAINNET_CHAIN_ID]: {
755
755
  blockExplorerUrl: "https://snowtrace.io",
756
756
  chainId: AVALANCHE_MAINNET_CHAIN_ID,
757
- displayName: "Avalanche Mainnet C-Chain",
757
+ displayName: "Avalanche",
758
758
  logo: "avax.svg",
759
759
  rpcTarget: `https://api.avax.network/ext/bc/C/rpc`,
760
760
  ticker: "AVAX",
@@ -1039,9 +1039,11 @@ class AccountTrackerController extends base_controllers_namespaceObject.BaseCont
1039
1039
  this.getIdentities = getIdentities;
1040
1040
  this.getCurrentChainId = getCurrentChainId;
1041
1041
  onPreferencesStateChange(() => {
1042
- external_loglevel_default().info("onPreferencesStateChange called");
1043
1042
  const refreshNeeded = this.syncAccounts();
1044
- if (refreshNeeded) this.refresh();
1043
+ if (refreshNeeded) {
1044
+ external_loglevel_default().info("onPreferencesStateChange called");
1045
+ this.refresh();
1046
+ }
1045
1047
  });
1046
1048
  this.blockTrackerListener = this.blockTrackerListener.bind(this);
1047
1049
  }