Skip to content

Commit 724be84

Browse files
junderwmotorina0
authored andcommitted
Fix test lints
1 parent 94f5291 commit 724be84

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

test/integration/taproot.spec.ts

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ describe('bitcoinjs-lib (transaction with taproot)', () => {
269269
const sendPubKey = toXOnly(sendInternalKey.publicKey);
270270
const { address: sendAddress } = bitcoin.payments.p2tr({
271271
internalPubkey: sendPubKey,
272-
scriptTree: scriptTree,
272+
scriptTree,
273273
network: regtest,
274274
});
275275

@@ -360,7 +360,7 @@ describe('bitcoinjs-lib (transaction with taproot)', () => {
360360
const sendPubKey = toXOnly(sendInternalKey.publicKey);
361361
const { address: sendAddress } = bitcoin.payments.p2tr({
362362
internalPubkey: sendPubKey,
363-
scriptTree: scriptTree,
363+
scriptTree,
364364
network: regtest,
365365
});
366366

@@ -566,7 +566,13 @@ describe('bitcoinjs-lib (transaction with taproot)', () => {
566566
function buildLeafIndexFinalizer(
567567
tapLeafScript: TapLeafScript,
568568
leafIndex: number,
569-
) {
569+
): (
570+
inputIndex: number,
571+
_input: PsbtInput,
572+
_tapLeafHashToFinalize?: Buffer,
573+
) => {
574+
finalScriptWitness: Buffer | undefined;
575+
} {
570576
return (
571577
inputIndex: number,
572578
_input: PsbtInput,

test/payments.utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ export function from(path: string, object: any, result?: any): any {
188188

189189
export function convertScriptTree(scriptTree: any, leafVersion?: number): any {
190190
if (Array.isArray(scriptTree))
191-
return scriptTree.map(t => convertScriptTree(t, leafVersion));
191+
return scriptTree.map(tr => convertScriptTree(tr, leafVersion));
192192

193193
const script = Object.assign({}, scriptTree);
194194
if (typeof script.output === 'string') {

0 commit comments

Comments
 (0)