From b76628f077a4f3c062ca372f2327432599f634d7 Mon Sep 17 00:00:00 2001 From: Kenan Yildirim Date: Thu, 7 Dec 2023 15:22:36 -0500 Subject: [PATCH] Fix `validateProof()` `proof` argument type `validateProof()` accepts an array of `Proof`s, not a single `Proof`. --- merkletools.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/merkletools.d.ts b/merkletools.d.ts index 7f6cdd2..05b155c 100644 --- a/merkletools.d.ts +++ b/merkletools.d.ts @@ -16,7 +16,7 @@ declare module 'merkle-tools' { makeTree(doubleHash?: boolean): void; makeBTCTree(doubleHash?: boolean): void; validateProof( - proof: Proof, + proof: readonly Proof[], targetHash: string | Buffer, merkleRoot: string | Buffer, doubleHash?: boolean,