Merge branch 'juandavidkincaid-development/juan/add-explicit-return-type-getProofs'

This commit is contained in:
Miguel Mota 2022-11-10 05:29:43 -08:00
commit e6b7572530
No known key found for this signature in database
GPG Key ID: 67EC1161588A00F9
1 changed files with 1 additions and 1 deletions

View File

@ -510,7 +510,7 @@ export class MerkleTree extends Base {
*const proof = tree.getProof(leaves[2], 2)
*```
*/
getProof (leaf: Buffer | string, index?: number):any[] {
getProof (leaf: Buffer | string, index?: number):{position: 'left' | 'right', data: Buffer}[] {
if (typeof leaf === 'undefined') {
throw new Error('leaf is required')
}