@btc-vision/transaction 1.6.14 → 1.6.16

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.6.14";
1
+ export declare const version = "1.6.16";
package/build/_version.js CHANGED
@@ -1 +1 @@
1
- export const version = '1.6.14';
1
+ export const version = '1.6.16';
@@ -33,7 +33,7 @@ export class TransactionFactory {
33
33
  }
34
34
  const opWalletCancel = await this.detectCancelOPWallet(params);
35
35
  if (opWalletCancel) {
36
- throw new Error('Cancelling via OP_WALLET is not supported yet.');
36
+ return opWalletCancel;
37
37
  }
38
38
  if (!('signer' in params)) {
39
39
  throw new Error('Field "signer" not provided, OP_WALLET not detected.');
@@ -494,7 +494,6 @@ export class TweakedTransaction extends Logger {
494
494
  if (decompiled && this.isCSVScript(decompiled)) {
495
495
  this.csvInputIndices.add(i);
496
496
  const csvBlocks = this.extractCSVBlocks(decompiled);
497
- console.log('csvBlocks', csvBlocks);
498
497
  input.sequence = this.setCSVSequence(csvBlocks, this.sequence);
499
498
  }
500
499
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@btc-vision/transaction",
3
3
  "type": "module",
4
- "version": "1.6.14",
4
+ "version": "1.6.16",
5
5
  "author": "BlobMaster41",
6
6
  "description": "OPNet transaction library allows you to create and sign transactions for the OPNet network.",
7
7
  "engines": {
package/src/_version.ts CHANGED
@@ -1 +1 @@
1
- export const version = '1.6.14';
1
+ export const version = '1.6.16';
@@ -101,7 +101,7 @@ export class TransactionFactory {
101
101
 
102
102
  const opWalletCancel = await this.detectCancelOPWallet(params);
103
103
  if (opWalletCancel) {
104
- throw new Error('Cancelling via OP_WALLET is not supported yet.');
104
+ return opWalletCancel;
105
105
  }
106
106
 
107
107
  if (!('signer' in params)) {
@@ -894,8 +894,6 @@ export abstract class TweakedTransaction extends Logger {
894
894
  // Extract CSV value from witness script
895
895
  const csvBlocks = this.extractCSVBlocks(decompiled);
896
896
 
897
- console.log('csvBlocks', csvBlocks);
898
-
899
897
  // Use the setCSVSequence method to properly set the sequence
900
898
  input.sequence = this.setCSVSequence(csvBlocks, this.sequence);
901
899
  }