From ad7577c4e2d74341ecedfee56b45b185b8d81c90 Mon Sep 17 00:00:00 2001 From: Jonathan Underwood Date: Mon, 9 Dec 2019 10:40:05 +0900 Subject: [PATCH] Update ts_src/psbt.ts Co-Authored-By: d-yokoi --- ts_src/psbt.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ts_src/psbt.ts b/ts_src/psbt.ts index d0f2e6b..207ec66 100644 --- a/ts_src/psbt.ts +++ b/ts_src/psbt.ts @@ -765,7 +765,7 @@ function hasSigs( .map(pkey => { const pubkey = ecPairFromPublicKey(pkey, { compressed: true }) .publicKey; - return partialSig.filter(pSig => pSig.pubkey.equals(pubkey))[0]; + return partialSig.find(pSig => pSig.pubkey.equals(pubkey)); }) .filter(v => !!v); } else {