I have a uint variable that contains days, through a function I wish I could have the ability to change but it gives me this error when I compile the code:
unexpected "days" after "time"
this is my code:
uint public cliff = 0 days;
function changeCliff(uint time) public onlyOwner {
cliff = time days;
}
how can i do it?