Skip to content

Instantly share code, notes, and snippets.

@AnthonyAkentiev
Created June 30, 2018 18:04
Show Gist options
  • Save AnthonyAkentiev/817520660c43bfe7e7c7142a66445228 to your computer and use it in GitHub Desktop.
Save AnthonyAkentiev/817520660c43bfe7e7c7142a66445228 to your computer and use it in GitHub Desktop.
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