@cityofzion/bs-neo-legacy 1.14.2 → 1.14.4

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.
@@ -13,7 +13,7 @@ export declare class BSNeoLegacy<N extends string = string> implements IBSNeoLeg
13
13
  readonly claimToken: TBSToken;
14
14
  readonly burnToken: TBSToken;
15
15
  network: TBSNetwork<TBSNeoLegacyNetworkId>;
16
- availableNetworkURLs: string[];
16
+ rpcNetworkUrls: string[];
17
17
  legacyNetwork: string;
18
18
  readonly defaultNetwork: TBSNetwork<TBSNeoLegacyNetworkId>;
19
19
  readonly availableNetworks: TBSNetwork<TBSNeoLegacyNetworkId>[];
@@ -91,14 +91,14 @@ class BSNeoLegacy {
91
91
  });
92
92
  }
93
93
  setNetwork(network) {
94
- const availableURLs = BSNeoLegacyConstants_1.BSNeoLegacyConstants.RPC_LIST_BY_NETWORK_ID[network.id] || [];
95
- const isValidNetwork = blockchain_service_1.BSUtilsHelper.validateNetwork(network, this.availableNetworks, availableURLs);
94
+ const rpcNetworkUrls = BSNeoLegacyConstants_1.BSNeoLegacyConstants.RPC_LIST_BY_NETWORK_ID[network.id] || [];
95
+ const isValidNetwork = blockchain_service_1.BSUtilsHelper.validateNetwork(network, this.availableNetworks, rpcNetworkUrls);
96
96
  if (!isValidNetwork) {
97
97
  throw new Error(`Network with id ${network.id} is not available for ${this.name}`);
98
98
  }
99
99
  this.network = network;
100
100
  this.legacyNetwork = BSNeoLegacyConstants_1.BSNeoLegacyConstants.LEGACY_NETWORK_BY_NETWORK_ID[network.id];
101
- this.availableNetworkURLs = availableURLs;
101
+ this.rpcNetworkUrls = rpcNetworkUrls;
102
102
  this.tokenService = new TokenServiceNeoLegacy_1.TokenServiceNeoLegacy();
103
103
  this.explorerService = new NeoTubeESNeoLegacy_1.NeoTubeESNeoLegacy(this);
104
104
  this.blockchainDataService = new DoraBDSNeoLegacy_1.DoraBDSNeoLegacy(this);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cityofzion/bs-neo-legacy",
3
- "version": "1.14.2",
3
+ "version": "1.14.4",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "author": "Coz",
@@ -12,7 +12,7 @@
12
12
  "@cityofzion/dora-ts": "0.6.2",
13
13
  "@cityofzion/neon-js": "4.8.3",
14
14
  "axios": "~1.12.2",
15
- "@cityofzion/blockchain-service": "1.22.5"
15
+ "@cityofzion/blockchain-service": "1.22.7"
16
16
  },
17
17
  "devDependencies": {
18
18
  "@types/jest": "~30.0.0",