Last active
October 21, 2021 14:15
-
-
Save elmariachi111/2ebb7ac395980684f7c8b3e2ddc48053 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // SPDX-License-Identifier: GPL-3.0 | |
| pragma solidity ^0.8; | |
| import '@openzeppelin/contracts/access/Ownable.sol'; | |
| contract Storage is Ownable { | |
| uint256 number; | |
| constructor() Ownable() {} | |
| function store(uint256 num) public onlyOwner { | |
| number = num; | |
| } | |
| function retrieve() public view returns (uint256){ | |
| return number; | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment