From 0ede52bfc67a3a9d50f2d03bede0936903aae748 Mon Sep 17 00:00:00 2001 From: Vlad Stan Date: Tue, 29 Nov 2022 10:17:40 +0200 Subject: [PATCH] chore: remove `any` type --- src/psbt/bip371.js | 2 +- ts_src/psbt.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/psbt/bip371.js b/src/psbt/bip371.js index c9706b7bbb..8e76ecda7f 100644 --- a/src/psbt/bip371.js +++ b/src/psbt/bip371.js @@ -171,7 +171,7 @@ function extractTaprootSigs(input) { function getTapKeySigFromWithness(finalScriptWitness) { if (!finalScriptWitness) return; const witness = finalScriptWitness.slice(2); - // todo: add schnor signature validation + // todo: add schnorr signature validation if (witness.length === 64 || witness.length === 65) return witness; } function _tapTreeToList(tree, leaves = [], depth = 0) { diff --git a/ts_src/psbt.ts b/ts_src/psbt.ts index df3cf22ada..824e70a876 100644 --- a/ts_src/psbt.ts +++ b/ts_src/psbt.ts @@ -1739,8 +1739,8 @@ function getTaprootHashesForSig( const prevOuts: Output[] = inputs.map((i, index) => getScriptAndAmountFromUtxo(index, i, cache), ); - const signingScripts: any = prevOuts.map(o => o.script); - const values: any = prevOuts.map(o => o.value); + const signingScripts = prevOuts.map(o => o.script); + const values = prevOuts.map(o => o.value); const hashes = []; if (input.tapInternalKey && !tapLeafHashToSign) {