From e554591bfa71d66ae6a081db968bf56320e7c0b8 Mon Sep 17 00:00:00 2001 From: Artem Chystiakov Date: Sat, 13 Apr 2024 16:57:52 +0300 Subject: [PATCH] quick test fix --- test/libs/data-structures/SparseMerkleTree.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/libs/data-structures/SparseMerkleTree.test.ts b/test/libs/data-structures/SparseMerkleTree.test.ts index 6313d085..9029c2a9 100644 --- a/test/libs/data-structures/SparseMerkleTree.test.ts +++ b/test/libs/data-structures/SparseMerkleTree.test.ts @@ -617,7 +617,7 @@ describe("SparseMerkleTree", () => { const key = ethers.toBeHex(keys[Number(i) - 1], 32); const value = ethers.toBeHex(ethers.hexlify(ethers.randomBytes(20))); - await merkleTree.updateAddress(key, ethers.toBeHex(value)); + await merkleTree.updateAddress(key, ethers.toBeHex(value, 20)); await localMerkleTree.update(BigInt(key), BigInt(value)); expect(await merkleTree.getAddressRoot()).to.equal(await getRoot(localMerkleTree));