Skip to content
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

Connect whitelist Merkletree #25

Open
justinsteu opened this issue Feb 23, 2022 · 3 comments
Open

Connect whitelist Merkletree #25

justinsteu opened this issue Feb 23, 2022 · 3 comments

Comments

@justinsteu
Copy link

How do I link my merkle tree whitelist? When I add the mint-whitelist button and try to mint with it, it says that the address is not whitelisted. How do I link my whitelist?

@caffeinum
Copy link
Member

To do that, you need to fork and update the code to use IPFS whitelist config instead of our backend. See this file on feature/whitelist branch:

https://github.com/buildship-dev/webflow-nft-components/blob/feature/whitelist/src/mint/whitelist/web3.js#L45

@caffeinum
Copy link
Member

How it works now:

Our backend stores merkle tree and returns hashes for a given address (e.g. for my address it works like this):

https://metadata.buildship.dev/api/extensions/merkle-tree/airdrops/0xffE06cb4807917bd79382981f23d16A70C102c3B

How it might work alternatively:

There's an IPFS static file containing merkle tree info for all addresses, and the proof is generated on the frontend using https://github.com/miguelmota/merkletreejs

@SerbiusPrime
Copy link

Has anyone done this successfully?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants