@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.
@@ -1 +1 @@
1
- export declare const version = "1.0.59";
1
+ export declare const version = "1.0.60";
package/build/_version.js CHANGED
@@ -1 +1 @@
1
- export const version = '1.0.59';
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: out.script.toString('hex'),
84
+ hex: out2.script.toString('hex'),
84
85
  address: deploymentParameters.from,
85
86
  },
86
- value: BigInt(signedTransaction.outs[1].value),
87
+ value: BigInt(out2.value),
87
88
  };
88
89
  return {
89
90
  transaction: [signedTransaction.toHex(), outTx.toHex()],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "type": "module",
3
- "version": "1.0.59",
3
+ "version": "1.0.60",
4
4
  "author": "BlobMaster41",
5
5
  "description": "OPNet transaction library allows you to create and sign transactions for the OPNet network.",
6
6
  "engines": {
package/src/_version.ts CHANGED
@@ -1 +1 @@
1
- export const version = '1.0.59';
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: out.script.toString('hex'),
178
+ hex: out2.script.toString('hex'),
178
179
  address: deploymentParameters.from,
179
180
  },
180
- value: BigInt(signedTransaction.outs[1].value),
181
+ value: BigInt(out2.value),
181
182
  };
182
183
 
183
184
  return {