-
-
Notifications
You must be signed in to change notification settings - Fork 203
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MerkleTree always returns [] #60
Labels
Comments
I have also tried the following way, and I get the message:
|
On my side to make it work I have to add an empty entry in the original array: [
"",
"0xAddress1",
"0xAddress2"
] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi, I am trying to use this library to manage a whiteList of Ethereum address.
Question, I have tried many ways, and I can not get it to work.
I had to modify a little bit the leafNodes part, because when using Typescript it was giving me problems.
I'm using MongoDB. I clarify.
The merkleRoot generation function seems to work correctly like this:
Now for the merkleProff, I'm running it like this (based on examples I saw in the tests section).
In my code, I create the list, add an address to the whitelist, close the list (I create merkleRoot) and then use a function for the merkleProff to check if the user is in the whitelist.
The text was updated successfully, but these errors were encountered: