Skip to content

Commit

Permalink
chore: remove any type
Browse files Browse the repository at this point in the history
  • Loading branch information
motorina0 committed Nov 29, 2022
1 parent ca27d17 commit 0ede52b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/psbt/bip371.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
4 changes: 2 additions & 2 deletions ts_src/psbt.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 0ede52b

Please sign in to comment.