@talismn/on-chain-id 0.0.0-pr2091-20250717003731 → 0.0.0-pr2091-20250721015613

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.
@@ -1413,8 +1413,7 @@ const lookupAznsAddresses = async (config, addresses) => {
1413
1413
  }
1414
1414
  const provider = config.chainConnectors.substrate.asProvider(config.chainIdAlephZero);
1415
1415
  const results = await Promise.allSettled(addresses.map(async address => {
1416
- // no need to do AZNS lookup for ethereum addresses
1417
- if (crypto.isEthereumAddress(address)) return;
1416
+ if (!crypto.isSs58Address(address)) return;
1418
1417
  const domain = await resolveAddressToDomain(address, {
1419
1418
  chainId: config.aznsSupportedChainIdAlephZero,
1420
1419
  registry: config.registryAlephZero,
@@ -1413,8 +1413,7 @@ const lookupAznsAddresses = async (config, addresses) => {
1413
1413
  }
1414
1414
  const provider = config.chainConnectors.substrate.asProvider(config.chainIdAlephZero);
1415
1415
  const results = await Promise.allSettled(addresses.map(async address => {
1416
- // no need to do AZNS lookup for ethereum addresses
1417
- if (crypto.isEthereumAddress(address)) return;
1416
+ if (!crypto.isSs58Address(address)) return;
1418
1417
  const domain = await resolveAddressToDomain(address, {
1419
1418
  chainId: config.aznsSupportedChainIdAlephZero,
1420
1419
  registry: config.registryAlephZero,
@@ -1,4 +1,4 @@
1
- import { isEthereumAddress } from '@talismn/crypto';
1
+ import { isSs58Address, isEthereumAddress } from '@talismn/crypto';
2
2
  import anylogger from 'anylogger';
3
3
  import { Abi } from '@polkadot/api-contract';
4
4
  import { u8aToHex, u8aConcatStrict } from '@polkadot/util';
@@ -1407,8 +1407,7 @@ const lookupAznsAddresses = async (config, addresses) => {
1407
1407
  }
1408
1408
  const provider = config.chainConnectors.substrate.asProvider(config.chainIdAlephZero);
1409
1409
  const results = await Promise.allSettled(addresses.map(async address => {
1410
- // no need to do AZNS lookup for ethereum addresses
1411
- if (isEthereumAddress(address)) return;
1410
+ if (!isSs58Address(address)) return;
1412
1411
  const domain = await resolveAddressToDomain(address, {
1413
1412
  chainId: config.aznsSupportedChainIdAlephZero,
1414
1413
  registry: config.registryAlephZero,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@talismn/on-chain-id",
3
- "version": "0.0.0-pr2091-20250717003731",
3
+ "version": "0.0.0-pr2091-20250721015613",
4
4
  "author": "Talisman",
5
5
  "homepage": "https://talisman.xyz",
6
6
  "license": "GPL-3.0-or-later",
@@ -22,9 +22,9 @@
22
22
  },
23
23
  "dependencies": {
24
24
  "anylogger": "^1.0.11",
25
- "@talismn/balances": "0.0.0-pr2091-20250717003731",
26
- "@talismn/crypto": "0.1.5",
27
- "@talismn/util": "0.0.0-pr2091-20250717003731"
25
+ "@talismn/util": "0.5.0",
26
+ "@talismn/balances": "0.0.0-pr2091-20250721015613",
27
+ "@talismn/crypto": "0.2.0"
28
28
  },
29
29
  "devDependencies": {
30
30
  "@polkadot/api-contract": "16.1.2",
@@ -36,8 +36,8 @@
36
36
  "jest": "^29.7.0",
37
37
  "ts-jest": "^29.2.5",
38
38
  "typescript": "^5.6.3",
39
- "@talismn/tsconfig": "0.0.2",
40
- "@talismn/eslint-config": "0.0.3"
39
+ "@talismn/eslint-config": "0.0.3",
40
+ "@talismn/tsconfig": "0.0.2"
41
41
  },
42
42
  "peerDependencies": {
43
43
  "@polkadot/api-contract": "*",