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 {
mapping(address => bool) claimableAddresses;
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?