@btc-vision/transaction 1.0.59 → 1.0.60
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/build/_version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const version = "1.0.
|
|
1
|
+
export declare const version = "1.0.60";
|
package/build/_version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const version = '1.0.
|
|
1
|
+
export const version = '1.0.60';
|
|
@@ -76,14 +76,15 @@ export class TransactionFactory {
|
|
|
76
76
|
};
|
|
77
77
|
const finalTransaction = new DeploymentTransaction(newParams);
|
|
78
78
|
const outTx = await finalTransaction.signTransaction();
|
|
79
|
+
const out2 = signedTransaction.outs[1];
|
|
79
80
|
const refundUTXO = {
|
|
80
81
|
transactionId: signedTransaction.getId(),
|
|
81
82
|
outputIndex: 1,
|
|
82
83
|
scriptPubKey: {
|
|
83
|
-
hex:
|
|
84
|
+
hex: out2.script.toString('hex'),
|
|
84
85
|
address: deploymentParameters.from,
|
|
85
86
|
},
|
|
86
|
-
value: BigInt(
|
|
87
|
+
value: BigInt(out2.value),
|
|
87
88
|
};
|
|
88
89
|
return {
|
|
89
90
|
transaction: [signedTransaction.toHex(), outTx.toHex()],
|
package/package.json
CHANGED
package/src/_version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const version = '1.0.
|
|
1
|
+
export const version = '1.0.60';
|
|
@@ -170,14 +170,15 @@ export class TransactionFactory {
|
|
|
170
170
|
// We have to regenerate using the new utxo
|
|
171
171
|
const outTx: Transaction = await finalTransaction.signTransaction();
|
|
172
172
|
|
|
173
|
+
const out2: Output = signedTransaction.outs[1];
|
|
173
174
|
const refundUTXO: UTXO = {
|
|
174
175
|
transactionId: signedTransaction.getId(),
|
|
175
176
|
outputIndex: 1, // always 1
|
|
176
177
|
scriptPubKey: {
|
|
177
|
-
hex:
|
|
178
|
+
hex: out2.script.toString('hex'),
|
|
178
179
|
address: deploymentParameters.from,
|
|
179
180
|
},
|
|
180
|
-
value: BigInt(
|
|
181
|
+
value: BigInt(out2.value),
|
|
181
182
|
};
|
|
182
183
|
|
|
183
184
|
return {
|