@btc-vision/transaction 1.2.11 → 1.2.12

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.2.11";
1
+ export declare const version = "1.2.12";
package/build/_version.js CHANGED
@@ -1 +1 @@
1
- export const version = '1.2.11';
1
+ export const version = '1.2.12';
@@ -1,4 +1,4 @@
1
- import { crypto as bitCrypto, networks, Psbt, script as bitScript, toXOnly, } from '@btc-vision/bitcoin';
1
+ import { crypto as bitCrypto, script as bitScript, networks, Psbt, toXOnly, } from '@btc-vision/bitcoin';
2
2
  import { EcKeyPair } from '../../../keypair/EcKeyPair.js';
3
3
  import { canSignNonTaprootInput, isTaprootInput } from '../../../signer/SignerUtils.js';
4
4
  import { CustomKeypair } from '../BrowserSignerBase.js';
@@ -42,9 +42,9 @@ export class UnisatSigner extends CustomKeypair {
42
42
  return this._network;
43
43
  }
44
44
  get unisat() {
45
- const module = window.opnet || window.unisat;
45
+ const module = window.unisat;
46
46
  if (!module) {
47
- throw new Error('OPWallet extension not found');
47
+ throw new Error('Unisat extension not found');
48
48
  }
49
49
  return module;
50
50
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@btc-vision/transaction",
3
3
  "type": "module",
4
- "version": "1.2.11",
4
+ "version": "1.2.12",
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.2.11';
1
+ export const version = '1.2.12';
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  crypto as bitCrypto,
3
+ script as bitScript,
3
4
  Network,
4
5
  networks,
5
6
  Psbt,
6
- script as bitScript,
7
7
  TapScriptSig,
8
8
  toXOnly,
9
9
  } from '@btc-vision/bitcoin';
@@ -83,9 +83,9 @@ export class UnisatSigner extends CustomKeypair {
83
83
  }
84
84
 
85
85
  public get unisat(): Unisat {
86
- const module = window.opnet || window.unisat;
86
+ const module = window.unisat;
87
87
  if (!module) {
88
- throw new Error('OPWallet extension not found');
88
+ throw new Error('Unisat extension not found');
89
89
  }
90
90
 
91
91
  return module;