@paraspell/sdk-core 11.4.0 → 11.4.2

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/dist/index.cjs CHANGED
@@ -5033,9 +5033,7 @@ var dryRunInternal = /*#__PURE__*/function () {
5033
5033
  case 0:
5034
5034
  hopApi = params.api, currentChain = params.currentChain, currentOrigin = params.currentOrigin, currentAsset = params.currentAsset, forwardedXcms = params.forwardedXcms, hasPassedExchange = params.hasPassedExchange, isDestination = params.isDestination;
5035
5035
  if (destination === 'Ethereum' && (currentChain.includes('AssetHub') || currentChain.includes('BridgeHub'))) {
5036
- hopAsset = assets.findAssetInfoOrThrow(currentChain, {
5037
- symbol: assets.Native(assets.getNativeAssetSymbol(currentChain))
5038
- }, destination);
5036
+ hopAsset = assets.findNativeAssetInfoOrThrow(currentChain);
5039
5037
  } else if (hasPassedExchange && swapConfig && currentChain !== swapConfig.exchangeChain) {
5040
5038
  hopAsset = assets.findAssetOnDestOrThrow(swapConfig.exchangeChain, currentChain, swapConfig.currencyTo);
5041
5039
  } else if (isDestination) {
@@ -5130,15 +5128,11 @@ var dryRunInternal = /*#__PURE__*/function () {
5130
5128
  }
5131
5129
  assetHubWithCurrency = (_traversalResult$asse = traversalResult.assetHub) !== null && _traversalResult$asse !== void 0 && _traversalResult$asse.success ? _objectSpread2(_objectSpread2({}, traversalResult.assetHub), {}, {
5132
5130
  currency: resolvedFeeAsset ? resolvedFeeAsset.symbol : assets.getNativeAssetSymbol(assetHubChain),
5133
- asset: resolvedFeeAsset !== null && resolvedFeeAsset !== void 0 ? resolvedFeeAsset : assets.findAssetInfoOrThrow(assetHubChain, {
5134
- symbol: assets.Native(assets.getNativeAssetSymbol(assetHubChain))
5135
- }, destination)
5131
+ asset: resolvedFeeAsset !== null && resolvedFeeAsset !== void 0 ? resolvedFeeAsset : assets.findNativeAssetInfoOrThrow(assetHubChain)
5136
5132
  }) : traversalResult.assetHub;
5137
5133
  bridgeHubWithCurrency = processedBridgeHub !== null && processedBridgeHub !== void 0 && processedBridgeHub.success ? _objectSpread2(_objectSpread2({}, processedBridgeHub), {}, {
5138
5134
  currency: assets.getNativeAssetSymbol(bridgeHubChain),
5139
- asset: assets.findAssetInfoOrThrow(bridgeHubChain, {
5140
- symbol: assets.Native(assets.getNativeAssetSymbol(bridgeHubChain))
5141
- }, destination)
5135
+ asset: assets.findNativeAssetInfoOrThrow(bridgeHubChain)
5142
5136
  }) : processedBridgeHub;
5143
5137
  _getFailureInfo = getFailureInfo$1({
5144
5138
  destination: traversalResult.destination,
@@ -5980,7 +5974,7 @@ var getCurrencySelection = function getCurrencySelection(asset) {
5980
5974
  };
5981
5975
  };
5982
5976
  var pickOtherPallet = function pickOtherPallet(asset, pallets) {
5983
- if (assets.isForeignAsset(asset) && asset.assetId === undefined) {
5977
+ if (assets.isForeignAsset(asset) && (!asset.assetId || asset.assetId.startsWith('0x'))) {
5984
5978
  var _pallets$find;
5985
5979
  // No assetId means it's probably a ForeignAssets pallet asset
5986
5980
  return (_pallets$find = pallets.find(function (pallet) {
@@ -5997,8 +5991,7 @@ var createMintTxs = function createMintTxs(chain, asset, balance, address, api)
5997
5991
  var palletInstance = getPalletInstance(pallet);
5998
5992
  return palletInstance.mint(address, asset, balance, chain, api);
5999
5993
  };
6000
- var createRequiredMintTxs = function createRequiredMintTxs(chain, currency, amountHuman, balance, address, api) {
6001
- var asset = assets.findAssetInfoOrThrow(chain, currency, null);
5994
+ var createRequiredMintTxs = function createRequiredMintTxs(chain, asset, amountHuman, balance, address, api) {
6002
5995
  var amount = viem.parseUnits(amountHuman.toString(), asset.decimals);
6003
5996
  return createMintTxs(chain, _objectSpread2(_objectSpread2({}, asset), {}, {
6004
5997
  amount: amount
@@ -6028,9 +6021,7 @@ var assetKey = function assetKey(a) {
6028
6021
  };
6029
6022
  var mintBonusForSent = function mintBonusForSent(chain, sent, feeAsset, mintFeeAssets) {
6030
6023
  if (!mintFeeAssets) return 0n;
6031
- var _native = assets.findAssetInfo(chain, {
6032
- symbol: assets.Native(assets.getNativeAssetSymbol(chain))
6033
- }, null);
6024
+ var _native = assets.findNativeAssetInfo(chain);
6034
6025
  var relay = assets.findAssetInfo(chain, {
6035
6026
  location: {
6036
6027
  parents: sdkCommon.Parents.ONE,
@@ -6062,7 +6053,6 @@ var wrapTxBypass = /*#__PURE__*/function () {
6062
6053
  feeAsset,
6063
6054
  tx,
6064
6055
  mintFeeAssets,
6065
- nativeCurrency,
6066
6056
  relayCurrency,
6067
6057
  nativeInfo,
6068
6058
  relayInfo,
@@ -6091,9 +6081,6 @@ var wrapTxBypass = /*#__PURE__*/function () {
6091
6081
  };
6092
6082
  api = dryRunOptions.api, chain = dryRunOptions.chain, address = dryRunOptions.address, asset = dryRunOptions.asset, feeAsset = dryRunOptions.feeAsset, tx = dryRunOptions.tx;
6093
6083
  mintFeeAssets = options.mintFeeAssets;
6094
- nativeCurrency = {
6095
- symbol: assets.Native(assets.getNativeAssetSymbol(chain))
6096
- };
6097
6084
  relayCurrency = {
6098
6085
  location: {
6099
6086
  parents: sdkCommon.Parents.ONE,
@@ -6102,7 +6089,7 @@ var wrapTxBypass = /*#__PURE__*/function () {
6102
6089
  }
6103
6090
  }
6104
6091
  };
6105
- nativeInfo = mintFeeAssets ? assets.findAssetInfo(chain, nativeCurrency, null) : null;
6092
+ nativeInfo = mintFeeAssets ? assets.findNativeAssetInfo(chain) : null;
6106
6093
  relayInfo = mintFeeAssets ? assets.findAssetInfo(chain, relayCurrency, null) : null;
6107
6094
  sameNativeRelay = !!(nativeInfo && relayInfo && assets.isAssetEqual(nativeInfo, relayInfo));
6108
6095
  if (!mintFeeAssets) {
@@ -6110,7 +6097,7 @@ var wrapTxBypass = /*#__PURE__*/function () {
6110
6097
  break;
6111
6098
  }
6112
6099
  _context.n = 1;
6113
- return createRequiredMintTxs(chain, nativeCurrency, MINT_AMOUNT, 0n, address, api);
6100
+ return createRequiredMintTxs(chain, assets.findNativeAssetInfoOrThrow(chain), MINT_AMOUNT, 0n, address, api);
6114
6101
  case 1:
6115
6102
  _t = _context.v;
6116
6103
  _context.n = 3;
@@ -6557,18 +6544,12 @@ var getFailureInfo = function getFailureInfo(chains, hops) {
6557
6544
  };
6558
6545
  var getXcmFeeInternal = /*#__PURE__*/function () {
6559
6546
  var _ref2 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2(_ref, useRootOrigin) {
6560
- var api, tx, origin, destination, senderAddress, address, currency, feeAsset, disableFallback, swapConfig, asset, findNativeAssetInfo, amount, _yield$getOriginXcmFe, originFee, originCurrency, originAsset, originFeeType, originDryRunError, initialForwardedXcm, initialDestParaId, originWeight, sufficientOriginFee, destApi, destFeeRes, _result, _getFailureInfo, _failureChain, _failureReason, processHop, traversalResult, destFee, destCurrency, destAsset, destFeeType, destDryRunError, destSufficient, destResult, _destApi, destFallback, assetHubChain, processedBridgeHub, bridgeHubChain, bridgeHubHopIndex, convertToFeeDetail, result, _getFailureInfo2, failureChain, failureReason;
6547
+ var api, tx, origin, destination, senderAddress, address, currency, feeAsset, disableFallback, swapConfig, asset, amount, _yield$getOriginXcmFe, originFee, originCurrency, originAsset, originFeeType, originDryRunError, initialForwardedXcm, initialDestParaId, originWeight, sufficientOriginFee, destApi, destFeeRes, _result, _getFailureInfo, _failureChain, _failureReason, processHop, traversalResult, destFee, destCurrency, destAsset, destFeeType, destDryRunError, destSufficient, destResult, _destApi, destFallback, assetHubChain, processedBridgeHub, bridgeHubChain, bridgeHubHopIndex, convertToFeeDetail, result, _getFailureInfo2, failureChain, failureReason;
6561
6548
  return _regenerator().w(function (_context2) {
6562
6549
  while (1) switch (_context2.p = _context2.n) {
6563
6550
  case 0:
6564
6551
  api = _ref.api, tx = _ref.tx, origin = _ref.origin, destination = _ref.destination, senderAddress = _ref.senderAddress, address = _ref.address, currency = _ref.currency, feeAsset = _ref.feeAsset, disableFallback = _ref.disableFallback, swapConfig = _ref.swapConfig;
6565
6552
  asset = assets.findAssetInfoOrThrow(origin, currency, destination);
6566
- findNativeAssetInfo = function findNativeAssetInfo(chain) {
6567
- var dest = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
6568
- return assets.findAssetInfoOrThrow(chain, {
6569
- symbol: assets.Native(assets.getNativeAssetSymbol(chain))
6570
- }, dest);
6571
- };
6572
6553
  amount = abstractDecimals(currency.amount, asset.decimals, api);
6573
6554
  _context2.n = 1;
6574
6555
  return getOriginXcmFeeInternal({
@@ -6644,7 +6625,7 @@ var getXcmFeeInternal = /*#__PURE__*/function () {
6644
6625
  sufficient: destFeeRes.sufficient
6645
6626
  }), {}, {
6646
6627
  currency: assets.getNativeAssetSymbol(destination),
6647
- asset: findNativeAssetInfo(destination)
6628
+ asset: assets.findNativeAssetInfoOrThrow(destination)
6648
6629
  }),
6649
6630
  hops: []
6650
6631
  };
@@ -6699,7 +6680,7 @@ var getXcmFeeInternal = /*#__PURE__*/function () {
6699
6680
  hopAsset = asset;
6700
6681
  }
6701
6682
  } else {
6702
- hopAsset = findNativeAssetInfo(currentChain, destination);
6683
+ hopAsset = assets.findNativeAssetInfoOrThrow(currentChain);
6703
6684
  }
6704
6685
  return _context.a(2, _objectSpread2(_objectSpread2({}, hopResult), {}, {
6705
6686
  currency: hopAsset.symbol,
@@ -6787,7 +6768,7 @@ var getXcmFeeInternal = /*#__PURE__*/function () {
6787
6768
  destFeeType = destFallback.feeType;
6788
6769
  destSufficient = destFallback.sufficient;
6789
6770
  destCurrency = assets.getNativeAssetSymbol(destination);
6790
- destAsset = findNativeAssetInfo(destination);
6771
+ destAsset = assets.findNativeAssetInfoOrThrow(destination);
6791
6772
  _context2.n = 13;
6792
6773
  break;
6793
6774
  case 12:
@@ -6795,7 +6776,7 @@ var getXcmFeeInternal = /*#__PURE__*/function () {
6795
6776
  destFeeType = 'noFeeRequired';
6796
6777
  destSufficient = true;
6797
6778
  destCurrency = assets.getNativeAssetSymbol(destination);
6798
- destAsset = findNativeAssetInfo(destination);
6779
+ destAsset = assets.findNativeAssetInfoOrThrow(destination);
6799
6780
  case 13:
6800
6781
  // Process Ethereum bridge fees
6801
6782
  assetHubChain = "AssetHub".concat(getRelayChainOf(origin));
package/dist/index.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  import { blake2b } from '@noble/hashes/blake2';
2
- import { isChainEvm, getAssetsObject, InvalidCurrencyError, isForeignAsset, extractAssetLocation, getNativeAssetSymbol, getOtherAssets, isAssetEqual, findAssetInfo, isTAsset, getExistentialDepositOrThrow, isSymbolMatch, hasDryRunSupport, findAssetInfoOrThrow, isOverrideLocationSpecifier, findAssetInfoByLoc, findAssetOnDestOrThrow, Native, hasXcmPaymentApiSupport, hasSupportForAsset, getRelayChainSymbol, isSymbolSpecifier, normalizeLocation, getNativeAssets, getExistentialDeposit, normalizeSymbol } from '@paraspell/assets';
2
+ import { isChainEvm, getAssetsObject, InvalidCurrencyError, isForeignAsset, extractAssetLocation, getNativeAssetSymbol, getOtherAssets, isAssetEqual, findAssetInfo, isTAsset, getExistentialDepositOrThrow, isSymbolMatch, hasDryRunSupport, findAssetInfoOrThrow, isOverrideLocationSpecifier, findAssetInfoByLoc, findAssetOnDestOrThrow, findNativeAssetInfoOrThrow, Native, hasXcmPaymentApiSupport, findNativeAssetInfo, hasSupportForAsset, getRelayChainSymbol, isSymbolSpecifier, normalizeLocation, getNativeAssets, getExistentialDeposit, normalizeSymbol } from '@paraspell/assets';
3
3
  export * from '@paraspell/assets';
4
4
  import { base58 } from '@scure/base';
5
5
  import { isAddress, parseUnits, createPublicClient, http, getContract, pad, toHex, getAddress, concat, keccak256 } from 'viem';
@@ -5034,9 +5034,7 @@ var dryRunInternal = /*#__PURE__*/function () {
5034
5034
  case 0:
5035
5035
  hopApi = params.api, currentChain = params.currentChain, currentOrigin = params.currentOrigin, currentAsset = params.currentAsset, forwardedXcms = params.forwardedXcms, hasPassedExchange = params.hasPassedExchange, isDestination = params.isDestination;
5036
5036
  if (destination === 'Ethereum' && (currentChain.includes('AssetHub') || currentChain.includes('BridgeHub'))) {
5037
- hopAsset = findAssetInfoOrThrow(currentChain, {
5038
- symbol: Native(getNativeAssetSymbol(currentChain))
5039
- }, destination);
5037
+ hopAsset = findNativeAssetInfoOrThrow(currentChain);
5040
5038
  } else if (hasPassedExchange && swapConfig && currentChain !== swapConfig.exchangeChain) {
5041
5039
  hopAsset = findAssetOnDestOrThrow(swapConfig.exchangeChain, currentChain, swapConfig.currencyTo);
5042
5040
  } else if (isDestination) {
@@ -5131,15 +5129,11 @@ var dryRunInternal = /*#__PURE__*/function () {
5131
5129
  }
5132
5130
  assetHubWithCurrency = (_traversalResult$asse = traversalResult.assetHub) !== null && _traversalResult$asse !== void 0 && _traversalResult$asse.success ? _objectSpread2(_objectSpread2({}, traversalResult.assetHub), {}, {
5133
5131
  currency: resolvedFeeAsset ? resolvedFeeAsset.symbol : getNativeAssetSymbol(assetHubChain),
5134
- asset: resolvedFeeAsset !== null && resolvedFeeAsset !== void 0 ? resolvedFeeAsset : findAssetInfoOrThrow(assetHubChain, {
5135
- symbol: Native(getNativeAssetSymbol(assetHubChain))
5136
- }, destination)
5132
+ asset: resolvedFeeAsset !== null && resolvedFeeAsset !== void 0 ? resolvedFeeAsset : findNativeAssetInfoOrThrow(assetHubChain)
5137
5133
  }) : traversalResult.assetHub;
5138
5134
  bridgeHubWithCurrency = processedBridgeHub !== null && processedBridgeHub !== void 0 && processedBridgeHub.success ? _objectSpread2(_objectSpread2({}, processedBridgeHub), {}, {
5139
5135
  currency: getNativeAssetSymbol(bridgeHubChain),
5140
- asset: findAssetInfoOrThrow(bridgeHubChain, {
5141
- symbol: Native(getNativeAssetSymbol(bridgeHubChain))
5142
- }, destination)
5136
+ asset: findNativeAssetInfoOrThrow(bridgeHubChain)
5143
5137
  }) : processedBridgeHub;
5144
5138
  _getFailureInfo = getFailureInfo$1({
5145
5139
  destination: traversalResult.destination,
@@ -5981,7 +5975,7 @@ var getCurrencySelection = function getCurrencySelection(asset) {
5981
5975
  };
5982
5976
  };
5983
5977
  var pickOtherPallet = function pickOtherPallet(asset, pallets) {
5984
- if (isForeignAsset(asset) && asset.assetId === undefined) {
5978
+ if (isForeignAsset(asset) && (!asset.assetId || asset.assetId.startsWith('0x'))) {
5985
5979
  var _pallets$find;
5986
5980
  // No assetId means it's probably a ForeignAssets pallet asset
5987
5981
  return (_pallets$find = pallets.find(function (pallet) {
@@ -5998,8 +5992,7 @@ var createMintTxs = function createMintTxs(chain, asset, balance, address, api)
5998
5992
  var palletInstance = getPalletInstance(pallet);
5999
5993
  return palletInstance.mint(address, asset, balance, chain, api);
6000
5994
  };
6001
- var createRequiredMintTxs = function createRequiredMintTxs(chain, currency, amountHuman, balance, address, api) {
6002
- var asset = findAssetInfoOrThrow(chain, currency, null);
5995
+ var createRequiredMintTxs = function createRequiredMintTxs(chain, asset, amountHuman, balance, address, api) {
6003
5996
  var amount = parseUnits(amountHuman.toString(), asset.decimals);
6004
5997
  return createMintTxs(chain, _objectSpread2(_objectSpread2({}, asset), {}, {
6005
5998
  amount: amount
@@ -6029,9 +6022,7 @@ var assetKey = function assetKey(a) {
6029
6022
  };
6030
6023
  var mintBonusForSent = function mintBonusForSent(chain, sent, feeAsset, mintFeeAssets) {
6031
6024
  if (!mintFeeAssets) return 0n;
6032
- var _native = findAssetInfo(chain, {
6033
- symbol: Native(getNativeAssetSymbol(chain))
6034
- }, null);
6025
+ var _native = findNativeAssetInfo(chain);
6035
6026
  var relay = findAssetInfo(chain, {
6036
6027
  location: {
6037
6028
  parents: Parents.ONE,
@@ -6063,7 +6054,6 @@ var wrapTxBypass = /*#__PURE__*/function () {
6063
6054
  feeAsset,
6064
6055
  tx,
6065
6056
  mintFeeAssets,
6066
- nativeCurrency,
6067
6057
  relayCurrency,
6068
6058
  nativeInfo,
6069
6059
  relayInfo,
@@ -6092,9 +6082,6 @@ var wrapTxBypass = /*#__PURE__*/function () {
6092
6082
  };
6093
6083
  api = dryRunOptions.api, chain = dryRunOptions.chain, address = dryRunOptions.address, asset = dryRunOptions.asset, feeAsset = dryRunOptions.feeAsset, tx = dryRunOptions.tx;
6094
6084
  mintFeeAssets = options.mintFeeAssets;
6095
- nativeCurrency = {
6096
- symbol: Native(getNativeAssetSymbol(chain))
6097
- };
6098
6085
  relayCurrency = {
6099
6086
  location: {
6100
6087
  parents: Parents.ONE,
@@ -6103,7 +6090,7 @@ var wrapTxBypass = /*#__PURE__*/function () {
6103
6090
  }
6104
6091
  }
6105
6092
  };
6106
- nativeInfo = mintFeeAssets ? findAssetInfo(chain, nativeCurrency, null) : null;
6093
+ nativeInfo = mintFeeAssets ? findNativeAssetInfo(chain) : null;
6107
6094
  relayInfo = mintFeeAssets ? findAssetInfo(chain, relayCurrency, null) : null;
6108
6095
  sameNativeRelay = !!(nativeInfo && relayInfo && isAssetEqual(nativeInfo, relayInfo));
6109
6096
  if (!mintFeeAssets) {
@@ -6111,7 +6098,7 @@ var wrapTxBypass = /*#__PURE__*/function () {
6111
6098
  break;
6112
6099
  }
6113
6100
  _context.n = 1;
6114
- return createRequiredMintTxs(chain, nativeCurrency, MINT_AMOUNT, 0n, address, api);
6101
+ return createRequiredMintTxs(chain, findNativeAssetInfoOrThrow(chain), MINT_AMOUNT, 0n, address, api);
6115
6102
  case 1:
6116
6103
  _t = _context.v;
6117
6104
  _context.n = 3;
@@ -6558,18 +6545,12 @@ var getFailureInfo = function getFailureInfo(chains, hops) {
6558
6545
  };
6559
6546
  var getXcmFeeInternal = /*#__PURE__*/function () {
6560
6547
  var _ref2 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2(_ref, useRootOrigin) {
6561
- var api, tx, origin, destination, senderAddress, address, currency, feeAsset, disableFallback, swapConfig, asset, findNativeAssetInfo, amount, _yield$getOriginXcmFe, originFee, originCurrency, originAsset, originFeeType, originDryRunError, initialForwardedXcm, initialDestParaId, originWeight, sufficientOriginFee, destApi, destFeeRes, _result, _getFailureInfo, _failureChain, _failureReason, processHop, traversalResult, destFee, destCurrency, destAsset, destFeeType, destDryRunError, destSufficient, destResult, _destApi, destFallback, assetHubChain, processedBridgeHub, bridgeHubChain, bridgeHubHopIndex, convertToFeeDetail, result, _getFailureInfo2, failureChain, failureReason;
6548
+ var api, tx, origin, destination, senderAddress, address, currency, feeAsset, disableFallback, swapConfig, asset, amount, _yield$getOriginXcmFe, originFee, originCurrency, originAsset, originFeeType, originDryRunError, initialForwardedXcm, initialDestParaId, originWeight, sufficientOriginFee, destApi, destFeeRes, _result, _getFailureInfo, _failureChain, _failureReason, processHop, traversalResult, destFee, destCurrency, destAsset, destFeeType, destDryRunError, destSufficient, destResult, _destApi, destFallback, assetHubChain, processedBridgeHub, bridgeHubChain, bridgeHubHopIndex, convertToFeeDetail, result, _getFailureInfo2, failureChain, failureReason;
6562
6549
  return _regenerator().w(function (_context2) {
6563
6550
  while (1) switch (_context2.p = _context2.n) {
6564
6551
  case 0:
6565
6552
  api = _ref.api, tx = _ref.tx, origin = _ref.origin, destination = _ref.destination, senderAddress = _ref.senderAddress, address = _ref.address, currency = _ref.currency, feeAsset = _ref.feeAsset, disableFallback = _ref.disableFallback, swapConfig = _ref.swapConfig;
6566
6553
  asset = findAssetInfoOrThrow(origin, currency, destination);
6567
- findNativeAssetInfo = function findNativeAssetInfo(chain) {
6568
- var dest = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
6569
- return findAssetInfoOrThrow(chain, {
6570
- symbol: Native(getNativeAssetSymbol(chain))
6571
- }, dest);
6572
- };
6573
6554
  amount = abstractDecimals(currency.amount, asset.decimals, api);
6574
6555
  _context2.n = 1;
6575
6556
  return getOriginXcmFeeInternal({
@@ -6645,7 +6626,7 @@ var getXcmFeeInternal = /*#__PURE__*/function () {
6645
6626
  sufficient: destFeeRes.sufficient
6646
6627
  }), {}, {
6647
6628
  currency: getNativeAssetSymbol(destination),
6648
- asset: findNativeAssetInfo(destination)
6629
+ asset: findNativeAssetInfoOrThrow(destination)
6649
6630
  }),
6650
6631
  hops: []
6651
6632
  };
@@ -6700,7 +6681,7 @@ var getXcmFeeInternal = /*#__PURE__*/function () {
6700
6681
  hopAsset = asset;
6701
6682
  }
6702
6683
  } else {
6703
- hopAsset = findNativeAssetInfo(currentChain, destination);
6684
+ hopAsset = findNativeAssetInfoOrThrow(currentChain);
6704
6685
  }
6705
6686
  return _context.a(2, _objectSpread2(_objectSpread2({}, hopResult), {}, {
6706
6687
  currency: hopAsset.symbol,
@@ -6788,7 +6769,7 @@ var getXcmFeeInternal = /*#__PURE__*/function () {
6788
6769
  destFeeType = destFallback.feeType;
6789
6770
  destSufficient = destFallback.sufficient;
6790
6771
  destCurrency = getNativeAssetSymbol(destination);
6791
- destAsset = findNativeAssetInfo(destination);
6772
+ destAsset = findNativeAssetInfoOrThrow(destination);
6792
6773
  _context2.n = 13;
6793
6774
  break;
6794
6775
  case 12:
@@ -6796,7 +6777,7 @@ var getXcmFeeInternal = /*#__PURE__*/function () {
6796
6777
  destFeeType = 'noFeeRequired';
6797
6778
  destSufficient = true;
6798
6779
  destCurrency = getNativeAssetSymbol(destination);
6799
- destAsset = findNativeAssetInfo(destination);
6780
+ destAsset = findNativeAssetInfoOrThrow(destination);
6800
6781
  case 13:
6801
6782
  // Process Ethereum bridge fees
6802
6783
  assetHubChain = "AssetHub".concat(getRelayChainOf(origin));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@paraspell/sdk-core",
3
- "version": "11.4.0",
3
+ "version": "11.4.2",
4
4
  "description": "SDK core for ParaSpell XCM/XCMP tool for developers",
5
5
  "repository": {
6
6
  "type": "git",
@@ -26,9 +26,9 @@
26
26
  "@noble/hashes": "^1.8.0",
27
27
  "@scure/base": "^2.0.0",
28
28
  "viem": "^2.36.0",
29
- "@paraspell/sdk-common": "11.4.0",
30
- "@paraspell/pallets": "11.4.0",
31
- "@paraspell/assets": "11.4.0"
29
+ "@paraspell/assets": "11.4.2",
30
+ "@paraspell/pallets": "11.4.2",
31
+ "@paraspell/sdk-common": "11.4.2"
32
32
  },
33
33
  "devDependencies": {
34
34
  "@babel/plugin-syntax-import-attributes": "^7.27.1",