Skip to content

Commit 9bf1219

Browse files
committed
fix tests
1 parent d28e9dd commit 9bf1219

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

src/payments/p2tr.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,10 @@ function p2tr(a, opts) {
3232
hash: types_1.typeforce.maybe(types_1.typeforce.BufferN(32)),
3333
pubkey: types_1.typeforce.maybe(types_1.typeforce.BufferN(32)),
3434
signature: types_1.typeforce.maybe(
35-
types_1.typeforce.anyOf[
36-
(types_1.typeforce.BufferN(64), types_1.typeforce.BufferN(65))
37-
],
35+
types_1.typeforce.anyOf(
36+
types_1.typeforce.BufferN(64),
37+
types_1.typeforce.BufferN(65),
38+
),
3839
),
3940
witness: types_1.typeforce.maybe(
4041
types_1.typeforce.arrayOf(types_1.typeforce.Buffer),

ts_src/payments/p2tr.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,7 @@ export function p2tr(a: Payment, opts?: PaymentOpts): Payment {
4040
internalPubkey: typef.maybe(typef.BufferN(32)),
4141
hash: typef.maybe(typef.BufferN(32)), // merkle root hash, the tweak
4242
pubkey: typef.maybe(typef.BufferN(32)), // tweaked with `hash` from `internalPubkey`
43-
signature: typef.maybe(
44-
typef.anyOf[(typef.BufferN(64), typef.BufferN(65))],
45-
),
43+
signature: typef.maybe(typef.anyOf(typef.BufferN(64), typef.BufferN(65))),
4644
witness: typef.maybe(typef.arrayOf(typef.Buffer)),
4745
scriptTree: typef.maybe(isTaptree),
4846
redeem: typef.maybe({

0 commit comments

Comments
 (0)