Skip to content

Instantly share code, notes, and snippets.

@theblockstalk
Created May 3, 2018 22:23
Show Gist options
  • Save theblockstalk/113cd6397724c910b0a85c6443079b69 to your computer and use it in GitHub Desktop.
Save theblockstalk/113cd6397724c910b0a85c6443079b69 to your computer and use it in GitHub Desktop.
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