@meshsdk/contract 1.6.7 → 1.6.9
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 +4 -1
- package/dist/index.js +6 -3
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1758,7 +1758,10 @@ var MeshSwapContract = class extends MeshTxInitiator {
|
|
|
1758
1758
|
swapUtxo.input.outputIndex,
|
|
1759
1759
|
swapUtxo.output.amount,
|
|
1760
1760
|
swapUtxo.output.address
|
|
1761
|
-
).spendingReferenceTxInInlineDatumPresent().spendingReferenceTxInRedeemerValue((0, import_common11.mConStr1)([])).txInScript(this.scriptCbor).txOut(
|
|
1761
|
+
).spendingReferenceTxInInlineDatumPresent().spendingReferenceTxInRedeemerValue((0, import_common11.mConStr1)([])).txInScript(this.scriptCbor).txOut(
|
|
1762
|
+
initiatorAddress,
|
|
1763
|
+
import_common11.MeshValue.fromValue(initiatorToReceive).toAssets()
|
|
1764
|
+
).changeAddress(walletAddress).txInCollateral(
|
|
1762
1765
|
collateral.input.txHash,
|
|
1763
1766
|
collateral.input.outputIndex,
|
|
1764
1767
|
collateral.output.amount,
|
package/dist/index.js
CHANGED
|
@@ -1522,9 +1522,9 @@ import {
|
|
|
1522
1522
|
conStr0 as conStr03,
|
|
1523
1523
|
mConStr0 as mConStr04,
|
|
1524
1524
|
mConStr1 as mConStr14,
|
|
1525
|
+
MeshValue as MeshValue2,
|
|
1525
1526
|
pubKeyAddress as pubKeyAddress3,
|
|
1526
|
-
value as value2
|
|
1527
|
-
MeshValue as MeshValue2
|
|
1527
|
+
value as value2
|
|
1528
1528
|
} from "@meshsdk/common";
|
|
1529
1529
|
import {
|
|
1530
1530
|
deserializeAddress as deserializeAddress5,
|
|
@@ -1781,7 +1781,10 @@ var MeshSwapContract = class extends MeshTxInitiator {
|
|
|
1781
1781
|
swapUtxo.input.outputIndex,
|
|
1782
1782
|
swapUtxo.output.amount,
|
|
1783
1783
|
swapUtxo.output.address
|
|
1784
|
-
).spendingReferenceTxInInlineDatumPresent().spendingReferenceTxInRedeemerValue(mConStr14([])).txInScript(this.scriptCbor).txOut(
|
|
1784
|
+
).spendingReferenceTxInInlineDatumPresent().spendingReferenceTxInRedeemerValue(mConStr14([])).txInScript(this.scriptCbor).txOut(
|
|
1785
|
+
initiatorAddress,
|
|
1786
|
+
MeshValue2.fromValue(initiatorToReceive).toAssets()
|
|
1787
|
+
).changeAddress(walletAddress).txInCollateral(
|
|
1785
1788
|
collateral.input.txHash,
|
|
1786
1789
|
collateral.input.outputIndex,
|
|
1787
1790
|
collateral.output.amount,
|