@paraspell/sdk-pjs 11.2.0 → 11.2.1

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
@@ -842,12 +842,12 @@ var PolkadotJsApi = /*#__PURE__*/function () {
842
842
  key: "getXcmPaymentApiFee",
843
843
  value: function () {
844
844
  var _getXcmPaymentApiFee = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee16(chain, xcm, asset) {
845
- var weight, localizedLocation, feeResult;
845
+ var weight, localizedLocation, feeResult, res;
846
846
  return _regenerator().w(function (_context16) {
847
847
  while (1) switch (_context16.n) {
848
848
  case 0:
849
849
  _context16.n = 1;
850
- return this.api.call.xcmPaymentApi.queryXcmWeight(xcm);
850
+ return this.getXcmWeight(xcm);
851
851
  case 1:
852
852
  weight = _context16.v;
853
853
  sdkCore.assertHasLocation(asset);
@@ -856,7 +856,8 @@ var PolkadotJsApi = /*#__PURE__*/function () {
856
856
  return this.api.call.xcmPaymentApi.queryWeightToAssetFee(weight, sdkCore.addXcmVersionHeader(localizedLocation, sdkCore.Version.V4));
857
857
  case 2:
858
858
  feeResult = _context16.v;
859
- return _context16.a(2, BigInt(feeResult.toString()));
859
+ res = feeResult.toJSON();
860
+ return _context16.a(2, BigInt(res.ok));
860
861
  }
861
862
  }, _callee16, this);
862
863
  }));
package/dist/index.mjs CHANGED
@@ -841,12 +841,12 @@ var PolkadotJsApi = /*#__PURE__*/function () {
841
841
  key: "getXcmPaymentApiFee",
842
842
  value: function () {
843
843
  var _getXcmPaymentApiFee = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee16(chain, xcm, asset) {
844
- var weight, localizedLocation, feeResult;
844
+ var weight, localizedLocation, feeResult, res;
845
845
  return _regenerator().w(function (_context16) {
846
846
  while (1) switch (_context16.n) {
847
847
  case 0:
848
848
  _context16.n = 1;
849
- return this.api.call.xcmPaymentApi.queryXcmWeight(xcm);
849
+ return this.getXcmWeight(xcm);
850
850
  case 1:
851
851
  weight = _context16.v;
852
852
  assertHasLocation(asset);
@@ -855,7 +855,8 @@ var PolkadotJsApi = /*#__PURE__*/function () {
855
855
  return this.api.call.xcmPaymentApi.queryWeightToAssetFee(weight, addXcmVersionHeader(localizedLocation, Version.V4));
856
856
  case 2:
857
857
  feeResult = _context16.v;
858
- return _context16.a(2, BigInt(feeResult.toString()));
858
+ res = feeResult.toJSON();
859
+ return _context16.a(2, BigInt(res.ok));
859
860
  }
860
861
  }, _callee16, this);
861
862
  }));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@paraspell/sdk-pjs",
3
- "version": "11.2.0",
3
+ "version": "11.2.1",
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.64",
28
28
  "ethers": "^6.15.0",
29
29
  "viem": "^2.33.2",
30
- "@paraspell/sdk-core": "11.2.0"
30
+ "@paraspell/sdk-core": "11.2.1"
31
31
  },
32
32
  "peerDependencies": {
33
33
  "@polkadot/api": ">= 16.0 < 17",