Snippets

Mojtaba Khodami SimpleStorage

Created by Mojtaba Khodami

File SimpleStorage.sol Added

  • Ignore whitespace
  • Hide word diff
+// SPDX-License-Identifier: MIT
+pragma solidity ^0.8.2;
+
+import "@openzeppelin/contracts/access/Ownable.sol";
+
+contract SimpleStorage is Ownable {
+
+    uint64 private _storage;
+
+    function set(uint64 input) public onlyOwner {
+        _storage = input;
+    }
+
+    function get() public view returns (uint64) {
+        return _storage;
+    }
+}
HTTPS SSH

You can clone a snippet to your computer for local editing. Learn more.