@chain-registry/utils 1.4.0 → 1.5.0
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/CHANGELOG.md +8 -0
- package/main/utils.js +4 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,14 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [1.5.0](https://github.com/cosmology-tech/chain-registry/compare/@chain-registry/utils@1.4.0...@chain-registry/utils@1.5.0) (2023-02-08)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @chain-registry/utils
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
6
14
|
# [1.4.0](https://github.com/cosmology-tech/chain-registry/compare/@chain-registry/utils@1.3.0...@chain-registry/utils@1.4.0) (2022-12-08)
|
|
7
15
|
|
|
8
16
|
**Note:** Version bump only for package @chain-registry/utils
|
package/main/utils.js
CHANGED
|
@@ -177,6 +177,9 @@ var getIbcAssets = function getIbcAssets(chainName, ibc, assets) {
|
|
|
177
177
|
return newAsset;
|
|
178
178
|
});
|
|
179
179
|
var channel = getTransferChannel(ibcInfo);
|
|
180
|
+
if (!channel || channel[chainIs] || channel[counterpartyIs]) {
|
|
181
|
+
return;
|
|
182
|
+
}
|
|
180
183
|
return {
|
|
181
184
|
chain: _objectSpread(_objectSpread({}, chainIbc), channel[chainIs]),
|
|
182
185
|
counterparty: _objectSpread(_objectSpread({}, counterpartyIbc), channel[counterpartyIs]),
|
|
@@ -262,7 +265,7 @@ var getCw20Assets = function getCw20Assets(chainName, ibc, assets) {
|
|
|
262
265
|
});
|
|
263
266
|
if (!cw20Assets.length) return;
|
|
264
267
|
var channel = getWasmChannel(ibcInfo);
|
|
265
|
-
if (!channel) {
|
|
268
|
+
if (!channel || channel[chainIs] || channel[counterpartyIs]) {
|
|
266
269
|
// console.warn(
|
|
267
270
|
// chainIbc.chain_name,
|
|
268
271
|
// '<>',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@chain-registry/utils",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.5.0",
|
|
4
4
|
"description": "Chain Registry Utils",
|
|
5
5
|
"author": "Dan Lynch <pyramation@gmail.com>",
|
|
6
6
|
"homepage": "https://github.com/cosmology-tech/chain-registry",
|
|
@@ -76,5 +76,5 @@
|
|
|
76
76
|
"@chain-registry/types": "^0.14.0",
|
|
77
77
|
"sha.js": "^2.4.11"
|
|
78
78
|
},
|
|
79
|
-
"gitHead": "
|
|
79
|
+
"gitHead": "3b7400b1f55405ec903b03aaf23d4ee1972afeed"
|
|
80
80
|
}
|