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

Add airdrop NFT function for a empty wallet #10

Open
zk1tty opened this issue Feb 5, 2024 · 3 comments
Open

Add airdrop NFT function for a empty wallet #10

zk1tty opened this issue Feb 5, 2024 · 3 comments
Assignees

Comments

@zk1tty
Copy link
Contributor

zk1tty commented Feb 5, 2024

One new requirement is coming up.
Payment on minting NFT will be zero, and make an empty wallet able to get minted NFT.
consider if we can use mintNFTInCoin with mintFeeInCoin == 0 status. But as long as a user wallet need to trigger the tx, user have to send a gas amount to broadcast tx.

@toufique-imam
Copy link
Collaborator

"But as long as a user wallet need to trigger the tx, user have to send a gas amount to broadcast tx" can you explain this please @zk1tty
Will minter role receive the gas amount then mint the nft for the user or the user will mint as it is, just no fee?

@zk1tty
Copy link
Contributor Author

zk1tty commented Feb 7, 2024

Yes, correct.
Let's do this way.

  • add freeMint(address recipient) function with onlyRole(MINTER_ROLE) modifiler.
    • recipient is the user's address.
    • free mint. so no free is taken.
  • add an API which user asks MINTER_ROLE to call freeMint contract API.

@toufique-imam
Copy link
Collaborator

@zk1tty please check commit 0d62f20

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

2 participants