Skip to content

Commit

Permalink
chore: add explicit type for returned signatures
Browse files Browse the repository at this point in the history
  • Loading branch information
motorina0 committed Nov 29, 2022
1 parent 9960306 commit 57f915e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ts_src/psbt.ts
Original file line number Diff line number Diff line change
Expand Up @@ -995,7 +995,9 @@ export class Psbt {
sighashTypes,
);

const signaturePromises: Promise<any>[] = [];
const signaturePromises: Promise<
{ tapKeySig: Buffer } | { tapScriptSig: TapScriptSig[] }
>[] = [];
const tapKeyHash = hashesForSig.filter(h => !h.leafHash)[0];
if (tapKeyHash) {
const tapKeySigPromise = Promise.resolve(
Expand Down

0 comments on commit 57f915e

Please sign in to comment.