Skip to content

Commit

Permalink
simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
Amxx committed Jan 10, 2024
1 parent c8f25a3 commit 134c545
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/simple.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ describe('simple merkle tree', () => {
{ sortLeaves: false },
]) {
describe(`with options '${JSON.stringify(opts)}'`, () => {
const leaves = 'abcdef'.split('').map(c => keccak256(new TextEncoder().encode(c)));
const otherLeaves = 'abc'.split('').map(c => keccak256(new TextEncoder().encode(c)));
const leaves = 'abcdef'.split('').map(c => keccak256(Buffer.from(c)));
const otherLeaves = 'abc'.split('').map(c => keccak256(Buffer.from(c)));
const tree = SimpleMerkleTree.of(leaves, opts);
const otherTree = SimpleMerkleTree.of(otherLeaves, opts);

Expand Down

0 comments on commit 134c545

Please sign in to comment.