@subwallet/extension-base 1.2.11-0 → 1.2.11-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.
@@ -3015,7 +3015,6 @@ class KoniExtension {
3015
3015
  payload
3016
3016
  } = request;
3017
3017
  let registry;
3018
- let isEvm = false;
3019
3018
  if (isJsonPayload(payload)) {
3020
3019
  const [, chainInfo] = this.#koniState.findNetworkKeyByGenesisHash(payload.genesisHash);
3021
3020
  let metadata;
@@ -3069,9 +3068,6 @@ class KoniExtension {
3069
3068
  registry = this.#koniState.getSubstrateApi(chainInfo.slug).api.registry;
3070
3069
  }
3071
3070
  }
3072
- if (chainInfo) {
3073
- isEvm = (0, _utils3._isChainEvmCompatible)(chainInfo);
3074
- }
3075
3071
  } else {
3076
3072
  // for non-payload, just create a registry to use
3077
3073
  registry = new _types3.TypeRegistry();
@@ -3080,7 +3076,7 @@ class KoniExtension {
3080
3076
  resolve({
3081
3077
  id,
3082
3078
  // In case evm chain, must be cut 2 character after 0x
3083
- signature: isEvm ? `0x${result.signature.slice(4)}` : result.signature
3079
+ signature: result.signature
3084
3080
  });
3085
3081
  if (this.#alwaysLock) {
3086
3082
  this.keyringLock();
@@ -13,6 +13,6 @@ const packageInfo = {
13
13
  name: '@subwallet/extension-base',
14
14
  path: typeof __dirname === 'string' ? __dirname : 'auto',
15
15
  type: 'cjs',
16
- version: '1.2.11-0'
16
+ version: '1.2.11-1'
17
17
  };
18
18
  exports.packageInfo = packageInfo;
@@ -2932,7 +2932,6 @@ export default class KoniExtension {
2932
2932
  payload
2933
2933
  } = request;
2934
2934
  let registry;
2935
- let isEvm = false;
2936
2935
  if (isJsonPayload(payload)) {
2937
2936
  const [, chainInfo] = this.#koniState.findNetworkKeyByGenesisHash(payload.genesisHash);
2938
2937
  let metadata;
@@ -2986,9 +2985,6 @@ export default class KoniExtension {
2986
2985
  registry = this.#koniState.getSubstrateApi(chainInfo.slug).api.registry;
2987
2986
  }
2988
2987
  }
2989
- if (chainInfo) {
2990
- isEvm = _isChainEvmCompatible(chainInfo);
2991
- }
2992
2988
  } else {
2993
2989
  // for non-payload, just create a registry to use
2994
2990
  registry = new TypeRegistry();
@@ -2997,7 +2993,7 @@ export default class KoniExtension {
2997
2993
  resolve({
2998
2994
  id,
2999
2995
  // In case evm chain, must be cut 2 character after 0x
3000
- signature: isEvm ? `0x${result.signature.slice(4)}` : result.signature
2996
+ signature: result.signature
3001
2997
  });
3002
2998
  if (this.#alwaysLock) {
3003
2999
  this.keyringLock();
package/package.json CHANGED
@@ -17,7 +17,7 @@
17
17
  "./cjs/detectPackage.js"
18
18
  ],
19
19
  "type": "module",
20
- "version": "1.2.11-0",
20
+ "version": "1.2.11-1",
21
21
  "main": "./cjs/index.js",
22
22
  "module": "./index.js",
23
23
  "types": "./index.d.ts",
@@ -1949,10 +1949,10 @@
1949
1949
  "@sora-substrate/type-definitions": "^1.17.7",
1950
1950
  "@substrate/connect": "^0.8.9",
1951
1951
  "@subwallet/chain-list": "0.2.70",
1952
- "@subwallet/extension-base": "^1.2.11-0",
1953
- "@subwallet/extension-chains": "^1.2.11-0",
1954
- "@subwallet/extension-dapp": "^1.2.11-0",
1955
- "@subwallet/extension-inject": "^1.2.11-0",
1952
+ "@subwallet/extension-base": "^1.2.11-1",
1953
+ "@subwallet/extension-chains": "^1.2.11-1",
1954
+ "@subwallet/extension-dapp": "^1.2.11-1",
1955
+ "@subwallet/extension-inject": "^1.2.11-1",
1956
1956
  "@subwallet/keyring": "^0.1.5",
1957
1957
  "@subwallet/ui-keyring": "^0.1.5",
1958
1958
  "@walletconnect/keyvaluestorage": "^1.1.1",
package/packageInfo.js CHANGED
@@ -7,5 +7,5 @@ export const packageInfo = {
7
7
  name: '@subwallet/extension-base',
8
8
  path: (import.meta && import.meta.url) ? new URL(import.meta.url).pathname.substring(0, new URL(import.meta.url).pathname.lastIndexOf('/') + 1) : 'auto',
9
9
  type: 'esm',
10
- version: '1.2.11-0'
10
+ version: '1.2.11-1'
11
11
  };