diff --git a/package.json b/package.json index 01de50bb..1effe8ec 100644 --- a/package.json +++ b/package.json @@ -51,6 +51,6 @@ }, "dependencies": { "@polkadot/api": "^13.1.1", - "@substrate/asset-transfer-api-registry": "^0.2.18" + "@substrate/asset-transfer-api-registry": "^0.2.22" } } diff --git a/src/createXcmTypes/util/getPaysWithFeeOriginAssetLocationFromRegistry.spec.ts b/src/createXcmTypes/util/getPaysWithFeeOriginAssetLocationFromRegistry.spec.ts index 8deed696..6af744cf 100644 --- a/src/createXcmTypes/util/getPaysWithFeeOriginAssetLocationFromRegistry.spec.ts +++ b/src/createXcmTypes/util/getPaysWithFeeOriginAssetLocationFromRegistry.spec.ts @@ -54,9 +54,11 @@ describe('getPaysWithFeeOriginAssetLocationFromRegistry', () => { const expected = { parents: '2', interior: { - X1: { - GlobalConsensus: 'Rococo', - }, + X1: [ + { + GlobalConsensus: 'Rococo', + }, + ], }, }; @@ -97,7 +99,7 @@ describe('getPaysWithFeeOriginAssetLocationFromRegistry', () => { const err = () => getPaysWithFeeOriginAssetLocationFromRegistry(assetHubAPI, paysWithFeeOriginAssetId); expect(err).toThrow( - `Multiple assets found with symbol USDT:\nassetId: 66 symbol: USDT\nassetId: 67 symbol: USDT\nassetId: 2000 symbol: USDT\nassetId: 8888 symbol: USDT\nPlease provide an integer assetId or valid asset location for paysWithFeeOrigin rather than the token symbol`, + `Multiple assets found with symbol USDT:\nassetId: 66 symbol: USDT\nassetId: 67 symbol: USDT\nassetId: 2000 symbol: USDT\nassetId: 8888 symbol: USDT\nassetId: 4000000012 symbol: USDT\nPlease provide an integer assetId or valid asset location for paysWithFeeOrigin rather than the token symbol`, ); }); }); diff --git a/yarn.lock b/yarn.lock index 2213f3bc..3a113745 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1410,10 +1410,10 @@ __metadata: languageName: node linkType: hard -"@substrate/asset-transfer-api-registry@npm:^0.2.18": - version: 0.2.20 - resolution: "@substrate/asset-transfer-api-registry@npm:0.2.20" - checksum: 10/77fc71840c9289476f6549662916e7cf2be370a51db2228ff678c31168f3c4d17dccd0c0373d044d2408c035bffa1608ab910b77037640b29ac187514b960929 +"@substrate/asset-transfer-api-registry@npm:^0.2.22": + version: 0.2.22 + resolution: "@substrate/asset-transfer-api-registry@npm:0.2.22" + checksum: 10/644a6af34190a3555824e6f9af4d191f52ee05db8ce7f03ac78dd7a34a46f764f16b0d26b8d6354e72d6b9b6d681a6af9b5bd2a0551568981f524c0dbe0e1b8c languageName: node linkType: hard @@ -1422,7 +1422,7 @@ __metadata: resolution: "@substrate/asset-transfer-api@workspace:." dependencies: "@polkadot/api": "npm:^13.1.1" - "@substrate/asset-transfer-api-registry": "npm:^0.2.18" + "@substrate/asset-transfer-api-registry": "npm:^0.2.22" "@substrate/dev": "npm:^0.7.1" "@types/cli-progress": "npm:^3" ansi-colors: "npm:^4.1.3"