Skip to content

Instantly share code, notes, and snippets.

@mingderwang
Last active February 17, 2024 16:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mingderwang/71f856dcd887f325291744d045a72922 to your computer and use it in GitHub Desktop.
Save mingderwang/71f856dcd887f325291744d045a72922 to your computer and use it in GitHub Desktop.
Timestamp test
// SPDX-License-Identifier: AGPL-3.0-only
pragma solidity ^0.8.7;
contract Timestamp {
uint public timestamp;
function saveTimestamp() public {
timestamp = block.timestamp;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment