@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
|
|
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
|
|
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
|
})
|