Snippets

Mojtaba Khodami SimpleStorage

Created by Mojtaba Khodami
// 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;
    }
}

Comments (0)

HTTPS SSH

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