@paraspell/sdk-core 10.4.9 → 10.4.10
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 +3 -3
- package/dist/index.mjs +3 -3
- package/package.json +4 -4
package/dist/index.cjs
CHANGED
|
@@ -4718,7 +4718,7 @@ var getDestXcmFee = /*#__PURE__*/function () {
|
|
|
4718
4718
|
asset: asset,
|
|
4719
4719
|
originFee: originFee,
|
|
4720
4720
|
feeAsset: resolvedFeeAsset,
|
|
4721
|
-
amount: BigInt(currency.amount)
|
|
4721
|
+
amount: BigInt(currency.amount) < 2n ? 2n : BigInt(currency.amount)
|
|
4722
4722
|
});
|
|
4723
4723
|
case 4:
|
|
4724
4724
|
dryRunResult = _context2.v;
|
|
@@ -5811,9 +5811,9 @@ var send = /*#__PURE__*/function () {
|
|
|
5811
5811
|
finalAsset = 'multiasset' in currency ? _objectSpread2(_objectSpread2({}, resolvedAsset), {}, {
|
|
5812
5812
|
amount: 0,
|
|
5813
5813
|
assetId: '1'
|
|
5814
|
-
}) : // Ensure amount is at least
|
|
5814
|
+
}) : // Ensure amount is at least 2 to avoid Rust panic
|
|
5815
5815
|
_objectSpread2(_objectSpread2({}, resolvedAsset), {}, {
|
|
5816
|
-
amount: BigInt(currency.amount) <
|
|
5816
|
+
amount: BigInt(currency.amount) < 2n ? 2n : currency.amount
|
|
5817
5817
|
});
|
|
5818
5818
|
finalVersion = selectXcmVersion(version, originVersion, destVersion);
|
|
5819
5819
|
normalizedAsset = finalAsset.multiLocation ? _objectSpread2(_objectSpread2({}, finalAsset), {}, {
|
package/dist/index.mjs
CHANGED
|
@@ -4719,7 +4719,7 @@ var getDestXcmFee = /*#__PURE__*/function () {
|
|
|
4719
4719
|
asset: asset,
|
|
4720
4720
|
originFee: originFee,
|
|
4721
4721
|
feeAsset: resolvedFeeAsset,
|
|
4722
|
-
amount: BigInt(currency.amount)
|
|
4722
|
+
amount: BigInt(currency.amount) < 2n ? 2n : BigInt(currency.amount)
|
|
4723
4723
|
});
|
|
4724
4724
|
case 4:
|
|
4725
4725
|
dryRunResult = _context2.v;
|
|
@@ -5812,9 +5812,9 @@ var send = /*#__PURE__*/function () {
|
|
|
5812
5812
|
finalAsset = 'multiasset' in currency ? _objectSpread2(_objectSpread2({}, resolvedAsset), {}, {
|
|
5813
5813
|
amount: 0,
|
|
5814
5814
|
assetId: '1'
|
|
5815
|
-
}) : // Ensure amount is at least
|
|
5815
|
+
}) : // Ensure amount is at least 2 to avoid Rust panic
|
|
5816
5816
|
_objectSpread2(_objectSpread2({}, resolvedAsset), {}, {
|
|
5817
|
-
amount: BigInt(currency.amount) <
|
|
5817
|
+
amount: BigInt(currency.amount) < 2n ? 2n : currency.amount
|
|
5818
5818
|
});
|
|
5819
5819
|
finalVersion = selectXcmVersion(version, originVersion, destVersion);
|
|
5820
5820
|
normalizedAsset = finalAsset.multiLocation ? _objectSpread2(_objectSpread2({}, finalAsset), {}, {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@paraspell/sdk-core",
|
|
3
|
-
"version": "10.4.
|
|
3
|
+
"version": "10.4.10",
|
|
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": "^1.2.6",
|
|
28
28
|
"viem": "^2.30.5",
|
|
29
|
-
"@paraspell/assets": "10.4.
|
|
30
|
-
"@paraspell/sdk-common": "10.4.
|
|
31
|
-
"@paraspell/pallets": "10.4.
|
|
29
|
+
"@paraspell/assets": "10.4.10",
|
|
30
|
+
"@paraspell/sdk-common": "10.4.10",
|
|
31
|
+
"@paraspell/pallets": "10.4.10"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
34
|
"@babel/plugin-syntax-import-attributes": "^7.27.1",
|