@typus/typus-sdk 1.2.9 → 1.2.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.
@@ -345,7 +345,14 @@ function getWithdrawHarvestClaimTx(input) {
345
345
  input.tx.pure(input.index),
346
346
  input.tx.makeMoveVec({
347
347
  type: "".concat(input.typusFrameworkOriginPackageId, "::vault::TypusDepositReceipt"),
348
- objects: result ? [result[1]] : input.receipts.map(function (receipt) { return input.tx.object(receipt); }),
348
+ objects: result
349
+ ? [
350
+ input.tx.object(input.tx.moveCall({
351
+ target: "0x1::option::destroy_some",
352
+ arguments: [input.tx.object(result[1])],
353
+ })),
354
+ ]
355
+ : input.receipts.map(function (receipt) { return input.tx.object(receipt); }),
349
356
  }),
350
357
  ],
351
358
  })
@@ -366,7 +373,14 @@ function getWithdrawHarvestClaimTx(input) {
366
373
  input.tx.pure(input.index),
367
374
  input.tx.makeMoveVec({
368
375
  type: "".concat(input.typusFrameworkOriginPackageId, "::vault::TypusDepositReceipt"),
369
- objects: result ? [result[1]] : input.receipts.map(function (receipt) { return input.tx.object(receipt); }),
376
+ objects: result
377
+ ? [
378
+ input.tx.object(input.tx.moveCall({
379
+ target: "0x1::option::destroy_some",
380
+ arguments: [input.tx.object(result[1])],
381
+ })),
382
+ ]
383
+ : input.receipts.map(function (receipt) { return input.tx.object(receipt); }),
370
384
  }),
371
385
  ],
372
386
  })
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@typus/typus-sdk",
3
3
  "author": "Typus",
4
4
  "description": "typus sdk",
5
- "version": "1.2.9",
5
+ "version": "1.2.10",
6
6
  "dependencies": {
7
7
  "@mysten/bcs": "^0.7.3",
8
8
  "@mysten/kiosk": "0.7.12",