Skip to content

Commit

Permalink
MEX-352: fix roothash check
Browse files Browse the repository at this point in the history
  • Loading branch information
dragos-rebegea committed Aug 10, 2023
1 parent bfc3883 commit 9566d64
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export class GovernanceTokenSnapshotMerkleService {
});
const leaves = JSON.parse(jsonContent);
const newMT = new MerkleTreeUtils(leaves);
if (newMT.getRootHash() !== rootHash) {
if (newMT.getRootHash() !== `0x${rootHash}`) {
throw new Error("Computed root hash doesn't match the provided root hash.");
}

Expand Down

0 comments on commit 9566d64

Please sign in to comment.