@typus/typus-sdk 1.2.9 → 1.2.11
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,15 @@ 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
|
+
typeArguments: ["".concat(input.typusFrameworkOriginPackageId, "::vault::TypusDepositReceipt")],
|
|
353
|
+
arguments: [input.tx.object(result[1])],
|
|
354
|
+
})),
|
|
355
|
+
]
|
|
356
|
+
: input.receipts.map(function (receipt) { return input.tx.object(receipt); }),
|
|
349
357
|
}),
|
|
350
358
|
],
|
|
351
359
|
})
|
|
@@ -366,7 +374,15 @@ function getWithdrawHarvestClaimTx(input) {
|
|
|
366
374
|
input.tx.pure(input.index),
|
|
367
375
|
input.tx.makeMoveVec({
|
|
368
376
|
type: "".concat(input.typusFrameworkOriginPackageId, "::vault::TypusDepositReceipt"),
|
|
369
|
-
objects: result
|
|
377
|
+
objects: result
|
|
378
|
+
? [
|
|
379
|
+
input.tx.object(input.tx.moveCall({
|
|
380
|
+
target: "0x1::option::destroy_some",
|
|
381
|
+
typeArguments: ["".concat(input.typusFrameworkOriginPackageId, "::vault::TypusDepositReceipt")],
|
|
382
|
+
arguments: [input.tx.object(result[1])],
|
|
383
|
+
})),
|
|
384
|
+
]
|
|
385
|
+
: input.receipts.map(function (receipt) { return input.tx.object(receipt); }),
|
|
370
386
|
}),
|
|
371
387
|
],
|
|
372
388
|
})
|
|
@@ -384,6 +400,7 @@ function getWithdrawHarvestClaimTx(input) {
|
|
|
384
400
|
? [
|
|
385
401
|
input.tx.object(input.tx.moveCall({
|
|
386
402
|
target: "0x1::option::destroy_some",
|
|
403
|
+
typeArguments: ["".concat(input.typusFrameworkOriginPackageId, "::vault::TypusDepositReceipt")],
|
|
387
404
|
arguments: [input.tx.object(result[1])],
|
|
388
405
|
})),
|
|
389
406
|
]
|