Skip to content

Instantly share code, notes, and snippets.

@himanshuchawla009
Created April 24, 2018 09:38
Show Gist options
  • Select an option

  • Save himanshuchawla009/3bf3aff87bf09f45fa65369a2afea989 to your computer and use it in GitHub Desktop.

Select an option

Save himanshuchawla009/3bf3aff87bf09f45fa65369a2afea989 to your computer and use it in GitHub Desktop.
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