Created
May 3, 2018 22:23
-
-
Save theblockstalk/113cd6397724c910b0a85c6443079b69 to your computer and use it in GitHub Desktop.
This file contains 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
import './Upgradeable.sol'; | |
contract SimpleUint is Upgradeable { | |
uint public value; | |
string public name = "SimpleUint"; | |
function setValue(uint _value) public { | |
value = _value; | |
} | |
function initialize() public { | |
if(initializeUpgradeable(target)) { | |
name = "SimpleUint"; | |
} | |
} | |
} | |
contract SimpleUintV2 is SimpleUint { | |
function setValue(uint _value) public { | |
value = 20*_value; | |
} | |
} | |
contract SimpleUintV3 is SimpleUintV2 { | |
bool isLondonFun; | |
function londonIsFun() public { | |
isLondonFun = true; | |
} | |
} | |
contract SimpleUintV4 is SimpleUintV3 { | |
bool public isLondonFun2; | |
function londonIsFun() public { | |
isLondonFun2 = true; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment