Created
April 24, 2018 09:38
-
-
Save himanshuchawla009/3bf3aff87bf09f45fa65369a2afea989 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
| pragma solidity ^0.4.18; | |
| import "./SafeMath.sol"; | |
| import "./StorageState.sol"; | |
| contract DelegateV1 is StorageState { | |
| using SafeMath for uint256; | |
| function setNumberOfOwners(uint256 num) public { | |
| _storage.setUint("total", num); | |
| } | |
| function getNumberOfOwners() view public returns (uint256) { | |
| return _storage.getUint("total"); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment