1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
// 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; } }
You can clone a snippet to your computer for local editing. Learn more.