@paraspell/sdk-core 8.2.0 → 8.2.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
@@ -18279,7 +18279,7 @@ var GeneralBuilder = /*#__PURE__*/function () {
18279
18279
  }, {
18280
18280
  key: "dryRun",
18281
18281
  value: function () {
18282
- var _dryRun = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
18282
+ var _dryRun = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(senderAddress) {
18283
18283
  var tx;
18284
18284
  return _regeneratorRuntime().wrap(function _callee3$(_context3) {
18285
18285
  while (1) switch (_context3.prev = _context3.next) {
@@ -18289,26 +18289,20 @@ var GeneralBuilder = /*#__PURE__*/function () {
18289
18289
  return this.build();
18290
18290
  case 3:
18291
18291
  tx = _context3.sent;
18292
- if (!(typeof this._address !== 'string')) {
18293
- _context3.next = 6;
18294
- break;
18295
- }
18296
- throw new Error('Address must be a string when using dryRun');
18297
- case 6:
18298
18292
  this.api.setDisconnectAllowed(true);
18299
18293
  return _context3.abrupt("return", getDryRun({
18300
18294
  api: this.api,
18301
18295
  tx: tx,
18302
- address: this._address,
18296
+ address: senderAddress,
18303
18297
  node: this._from
18304
18298
  }));
18305
- case 8:
18299
+ case 6:
18306
18300
  case "end":
18307
18301
  return _context3.stop();
18308
18302
  }
18309
18303
  }, _callee3, this);
18310
18304
  }));
18311
- function dryRun() {
18305
+ function dryRun(_x2) {
18312
18306
  return _dryRun.apply(this, arguments);
18313
18307
  }
18314
18308
  return dryRun;
package/dist/index.d.ts CHANGED
@@ -1092,7 +1092,7 @@ interface IFinalBuilderWithOptions<TApi, TRes> extends IAddToBatchBuilder<TApi,
1092
1092
  customPallet: (pallet: string, method: string) => this;
1093
1093
  disconnect: () => Promise<void>;
1094
1094
  build: () => Promise<TRes>;
1095
- dryRun: () => Promise<TDryRunResult>;
1095
+ dryRun: (senderAddress: string) => Promise<TDryRunResult>;
1096
1096
  }
1097
1097
 
1098
1098
  type TTransferInfo = {
@@ -1561,7 +1561,7 @@ declare class GeneralBuilder<TApi, TRes> implements IToBuilder<TApi, TRes>, ICur
1561
1561
  * @returns A Promise that resolves to the transfer extrinsic.
1562
1562
  */
1563
1563
  build(): Promise<TRes>;
1564
- dryRun(): Promise<TDryRunResult>;
1564
+ dryRun(senderAddress: string): Promise<TDryRunResult>;
1565
1565
  disconnect(): Promise<void>;
1566
1566
  }
1567
1567
  /**
package/dist/index.mjs CHANGED
@@ -18277,7 +18277,7 @@ var GeneralBuilder = /*#__PURE__*/function () {
18277
18277
  }, {
18278
18278
  key: "dryRun",
18279
18279
  value: function () {
18280
- var _dryRun = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
18280
+ var _dryRun = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(senderAddress) {
18281
18281
  var tx;
18282
18282
  return _regeneratorRuntime().wrap(function _callee3$(_context3) {
18283
18283
  while (1) switch (_context3.prev = _context3.next) {
@@ -18287,26 +18287,20 @@ var GeneralBuilder = /*#__PURE__*/function () {
18287
18287
  return this.build();
18288
18288
  case 3:
18289
18289
  tx = _context3.sent;
18290
- if (!(typeof this._address !== 'string')) {
18291
- _context3.next = 6;
18292
- break;
18293
- }
18294
- throw new Error('Address must be a string when using dryRun');
18295
- case 6:
18296
18290
  this.api.setDisconnectAllowed(true);
18297
18291
  return _context3.abrupt("return", getDryRun({
18298
18292
  api: this.api,
18299
18293
  tx: tx,
18300
- address: this._address,
18294
+ address: senderAddress,
18301
18295
  node: this._from
18302
18296
  }));
18303
- case 8:
18297
+ case 6:
18304
18298
  case "end":
18305
18299
  return _context3.stop();
18306
18300
  }
18307
18301
  }, _callee3, this);
18308
18302
  }));
18309
- function dryRun() {
18303
+ function dryRun(_x2) {
18310
18304
  return _dryRun.apply(this, arguments);
18311
18305
  }
18312
18306
  return dryRun;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@paraspell/sdk-core",
3
- "version": "8.2.0",
3
+ "version": "8.2.2",
4
4
  "description": "SDK core for ParaSpell XCM/XCMP tool for developers",
5
5
  "repository": {
6
6
  "type": "git",