Skip to content

Commit 0ede52b

Browse files
committed
chore: remove any type
1 parent ca27d17 commit 0ede52b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/psbt/bip371.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ function extractTaprootSigs(input) {
171171
function getTapKeySigFromWithness(finalScriptWitness) {
172172
if (!finalScriptWitness) return;
173173
const witness = finalScriptWitness.slice(2);
174-
// todo: add schnor signature validation
174+
// todo: add schnorr signature validation
175175
if (witness.length === 64 || witness.length === 65) return witness;
176176
}
177177
function _tapTreeToList(tree, leaves = [], depth = 0) {

ts_src/psbt.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1739,8 +1739,8 @@ function getTaprootHashesForSig(
17391739
const prevOuts: Output[] = inputs.map((i, index) =>
17401740
getScriptAndAmountFromUtxo(index, i, cache),
17411741
);
1742-
const signingScripts: any = prevOuts.map(o => o.script);
1743-
const values: any = prevOuts.map(o => o.value);
1742+
const signingScripts = prevOuts.map(o => o.script);
1743+
const values = prevOuts.map(o => o.value);
17441744

17451745
const hashes = [];
17461746
if (input.tapInternalKey && !tapLeafHashToSign) {

0 commit comments

Comments
 (0)