@paraspell/sdk-pjs 8.13.1 → 8.13.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 +3 -3
- package/dist/index.mjs +3 -3
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -938,8 +938,8 @@ var PolkadotJsApi = /*#__PURE__*/function () {
|
|
|
938
938
|
}
|
|
939
939
|
throw new sdkCore.NodeNotSupportedError("DryRunApi is not available on node ".concat(node));
|
|
940
940
|
case 4:
|
|
941
|
-
//
|
|
942
|
-
isBifrost = node === 'BifrostPolkadot' || node === 'BifrostKusama';
|
|
941
|
+
// These nodes require a third parameter XCM version
|
|
942
|
+
isBifrost = node === 'BifrostPolkadot' || node === 'BifrostKusama' || node === 'AssetHubKusama';
|
|
943
943
|
DEFAULT_XCM_VERSION = 3;
|
|
944
944
|
_context14.next = 8;
|
|
945
945
|
return (_this$api$call$dryRun = this.api.call.dryRunApi).dryRunCall.apply(_this$api$call$dryRun, [{
|
|
@@ -975,7 +975,7 @@ var PolkadotJsApi = /*#__PURE__*/function () {
|
|
|
975
975
|
} : undefined;
|
|
976
976
|
forwardedXcms = resultJson.ok.forwardedXcms.length > 0 ? resultJson.ok.forwardedXcms[0] : [];
|
|
977
977
|
destParaId = forwardedXcms.length === 0 ? undefined : function (i, _ref5) {
|
|
978
|
-
return i.
|
|
978
|
+
return i.here === null ? 0 : (_ref5 = Array.isArray(i.x1) ? i.x1[0] : i.x1) === null || _ref5 === void 0 ? void 0 : _ref5.parachain;
|
|
979
979
|
}(Object.values(forwardedXcms[0])[0].interior);
|
|
980
980
|
return _context14.abrupt("return", {
|
|
981
981
|
success: true,
|
package/dist/index.mjs
CHANGED
|
@@ -937,8 +937,8 @@ var PolkadotJsApi = /*#__PURE__*/function () {
|
|
|
937
937
|
}
|
|
938
938
|
throw new NodeNotSupportedError("DryRunApi is not available on node ".concat(node));
|
|
939
939
|
case 4:
|
|
940
|
-
//
|
|
941
|
-
isBifrost = node === 'BifrostPolkadot' || node === 'BifrostKusama';
|
|
940
|
+
// These nodes require a third parameter XCM version
|
|
941
|
+
isBifrost = node === 'BifrostPolkadot' || node === 'BifrostKusama' || node === 'AssetHubKusama';
|
|
942
942
|
DEFAULT_XCM_VERSION = 3;
|
|
943
943
|
_context14.next = 8;
|
|
944
944
|
return (_this$api$call$dryRun = this.api.call.dryRunApi).dryRunCall.apply(_this$api$call$dryRun, [{
|
|
@@ -974,7 +974,7 @@ var PolkadotJsApi = /*#__PURE__*/function () {
|
|
|
974
974
|
} : undefined;
|
|
975
975
|
forwardedXcms = resultJson.ok.forwardedXcms.length > 0 ? resultJson.ok.forwardedXcms[0] : [];
|
|
976
976
|
destParaId = forwardedXcms.length === 0 ? undefined : function (i, _ref5) {
|
|
977
|
-
return i.
|
|
977
|
+
return i.here === null ? 0 : (_ref5 = Array.isArray(i.x1) ? i.x1[0] : i.x1) === null || _ref5 === void 0 ? void 0 : _ref5.parachain;
|
|
978
978
|
}(Object.values(forwardedXcms[0])[0].interior);
|
|
979
979
|
return _context14.abrupt("return", {
|
|
980
980
|
success: true,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@paraspell/sdk-pjs",
|
|
3
|
-
"version": "8.13.
|
|
3
|
+
"version": "8.13.2",
|
|
4
4
|
"description": "Polkadot.js based SDK for ParaSpell XCM/XCMP tool for developers",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"@snowbridge/contract-types": "0.1.50",
|
|
28
28
|
"ethers": "^6.13.7",
|
|
29
29
|
"viem": "^2.28.1",
|
|
30
|
-
"@paraspell/sdk-core": "8.13.
|
|
30
|
+
"@paraspell/sdk-core": "8.13.2"
|
|
31
31
|
},
|
|
32
32
|
"peerDependencies": {
|
|
33
33
|
"@polkadot/api": ">= 15.0 < 16",
|