@polkadot/extension-chains 0.50.1 → 0.52.1

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.
package/bundle.js CHANGED
@@ -9,7 +9,7 @@ export function metadataExpand(definition, isPartial = false) {
9
9
  if (cached && cached.specVersion === definition.specVersion) {
10
10
  return cached;
11
11
  }
12
- const { chain, genesisHash, icon, metaCalls, rawMetadata, specVersion, ss58Format, tokenDecimals, tokenSymbol, types, userExtensions } = definition;
12
+ const { chain, genesisHash, icon, metaCalls, specVersion, ss58Format, tokenDecimals, tokenSymbol, types, userExtensions } = definition;
13
13
  const registry = new TypeRegistry();
14
14
  if (!isPartial) {
15
15
  registry.register(types);
@@ -20,8 +20,8 @@ export function metadataExpand(definition, isPartial = false) {
20
20
  tokenSymbol
21
21
  }));
22
22
  const hasMetadata = !!metaCalls && !isPartial;
23
- if (hasMetadata || !!rawMetadata) {
24
- registry.setMetadata(new Metadata(registry, hasMetadata ? base64Decode(metaCalls) : rawMetadata), undefined, userExtensions);
23
+ if (hasMetadata) {
24
+ registry.setMetadata(new Metadata(registry, base64Decode(metaCalls)), undefined, userExtensions);
25
25
  }
26
26
  const isUnknown = genesisHash === '0x';
27
27
  const result = {
package/cjs/bundle.js CHANGED
@@ -13,7 +13,7 @@ function metadataExpand(definition, isPartial = false) {
13
13
  if (cached && cached.specVersion === definition.specVersion) {
14
14
  return cached;
15
15
  }
16
- const { chain, genesisHash, icon, metaCalls, rawMetadata, specVersion, ss58Format, tokenDecimals, tokenSymbol, types, userExtensions } = definition;
16
+ const { chain, genesisHash, icon, metaCalls, specVersion, ss58Format, tokenDecimals, tokenSymbol, types, userExtensions } = definition;
17
17
  const registry = new types_1.TypeRegistry();
18
18
  if (!isPartial) {
19
19
  registry.register(types);
@@ -24,8 +24,8 @@ function metadataExpand(definition, isPartial = false) {
24
24
  tokenSymbol
25
25
  }));
26
26
  const hasMetadata = !!metaCalls && !isPartial;
27
- if (hasMetadata || !!rawMetadata) {
28
- registry.setMetadata(new types_1.Metadata(registry, hasMetadata ? (0, util_crypto_1.base64Decode)(metaCalls) : rawMetadata), undefined, userExtensions);
27
+ if (hasMetadata) {
28
+ registry.setMetadata(new types_1.Metadata(registry, (0, util_crypto_1.base64Decode)(metaCalls)), undefined, userExtensions);
29
29
  }
30
30
  const isUnknown = genesisHash === '0x';
31
31
  const result = {
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.packageInfo = void 0;
4
- exports.packageInfo = { name: '@polkadot/extension-chains', path: typeof __dirname === 'string' ? __dirname : 'auto', type: 'cjs', version: '0.50.1' };
4
+ exports.packageInfo = { name: '@polkadot/extension-chains', path: typeof __dirname === 'string' ? __dirname : 'auto', type: 'cjs', version: '0.52.1' };
package/package.json CHANGED
@@ -18,7 +18,7 @@
18
18
  "./cjs/packageDetect.js"
19
19
  ],
20
20
  "type": "module",
21
- "version": "0.50.1",
21
+ "version": "0.52.1",
22
22
  "main": "./cjs/index.js",
23
23
  "module": "./index.js",
24
24
  "types": "./index.d.ts",
@@ -67,7 +67,7 @@
67
67
  }
68
68
  },
69
69
  "dependencies": {
70
- "@polkadot/extension-inject": "0.50.1",
70
+ "@polkadot/extension-inject": "0.52.1",
71
71
  "@polkadot/networks": "^13.0.2",
72
72
  "@polkadot/util": "^13.0.2",
73
73
  "@polkadot/util-crypto": "^13.0.2",
package/packageInfo.js CHANGED
@@ -1 +1 @@
1
- export const packageInfo = { name: '@polkadot/extension-chains', path: (import.meta && import.meta.url) ? new URL(import.meta.url).pathname.substring(0, new URL(import.meta.url).pathname.lastIndexOf('/') + 1) : 'auto', type: 'esm', version: '0.50.1' };
1
+ export const packageInfo = { name: '@polkadot/extension-chains', path: (import.meta && import.meta.url) ? new URL(import.meta.url).pathname.substring(0, new URL(import.meta.url).pathname.lastIndexOf('/') + 1) : 'auto', type: 'esm', version: '0.52.1' };