Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Amxx committed Feb 27, 2024
1 parent a0e8b20 commit f48455e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion src/core.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,10 @@ export function getMultiProof(tree: BytesLike[], indices: number[]): MultiProof<
indices.forEach(i => checkLeafNode(tree, i));
indices.sort((a, b) => b - a);

validateArgument(indices.slice(1).every((i, p) => i !== indices[p]), 'Cannot prove duplicated index');
validateArgument(
indices.slice(1).every((i, p) => i !== indices[p]),
'Cannot prove duplicated index',
);

const stack = indices.concat(); // copy
const proof = [];
Expand Down
2 changes: 1 addition & 1 deletion src/merkletree.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export interface MerkleTreeData<T> {
format: string;
tree: HexString[];
values: { value: T; treeIndex: number }[];
};
}

export interface MerkleTree<T> {
root: HexString;
Expand Down

0 comments on commit f48455e

Please sign in to comment.