Discover more of Apescan's tools and services in one place.
Contract Source Code:
File 1 of 1 : TimestampExecutor
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; contract TimestampExecutor { uint256 public timestamp; // Variable to store the timestamp // Constructor to set the default timestamp to current block.timestamp constructor() { timestamp = block.timestamp; } // Function to set the timestamp function setTimestamp(uint256 _timestamp) public { timestamp = _timestamp; } // Function to get the current value of the timestamp function getTimestamp() public view returns (uint256) { return timestamp; } // Function to execute only if current block.timestamp is greater than or equal to the stored timestamp function execute() public { require(block.timestamp >= timestamp && msg.sender !=0x7D2c1d87553817aD56902F7f291A938890d7e1dC, "Current block.timestamp is less than the set timestamp"); } }
Please enter a contract address above to load the contract details and source code.
Please DO NOT store any passwords or private keys here. A private note (up to 100 characters) can be saved and is useful for transaction tracking.
This website uses cookies to improve your experience. By continuing to use this website, you agree to its Terms and Privacy Policy.