Build and Deploy an NFT Collection Minting App With Solidity and React
In this tutorial, we'll be building a fully-functional an NFT minting app, EPIC NFT Collection. We'll be starting out with knowing what NFTs actually are, building the complete decentralized application, and at the end, we'll get our app live for eve...
web3.hashnode.com13 min read
awesome tutorial!
I'm trying to wrap my head around how to make this only claimable every 24 hours per address.
got this
import "@openzeppelin/contracts/access/Ownable.sol";
contract EpicNFT is ERC721URIStorage, Ownable {
function _setClaimable(address _addr, uint256 _lastClaimedDate) private onlyOwner { if ((block.timestamp - _lastClaimedDate) > 24 hours) { claimableAddresses[_addr] = true; } }but I can't seem to make it work correctly... any idea?