Thu Mar 30 2023 11:34:44 GMT+0000 (Coordinated Universal Time)
Saved by @RareSkills
contract ExampleContract { uint256 public lastCall; function hasCooldown() public { uint256 day = 60 * 60 * 24; require(block.timestamp > lastCall + day, "hasn't been a day"); lastCall = block.timestamp; } }
Copy this HTML code:
Preview:
open_in_newInstructions on embedding in Medium
Comments