Merge branch 'juandavidkincaid-development/juan/add-explicit-return-type-getProofs'
This commit is contained in:
commit
e6b7572530
|
@ -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')
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue