Created
June 30, 2018 18:04
-
-
Save AnthonyAkentiev/817520660c43bfe7e7c7142a66445228 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
contract DaoBase { | |
int x; | |
function method1() public {x = x +1; } | |
} | |
contract Moneyflow { | |
DaoBase daoBase; | |
} | |
/// Upgradeability. Approach 1 - split DaoBase into 2 contracts - storage and code (explicit) | |
contract Storage { | |
int x; | |
} | |
contract DaoBase { | |
Storage storage; | |
function method1() public {storage.x = storage.x + 1;} | |
function upgrade(){ | |
} | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment