upgradability to controlled contracts

This commit is contained in:
Ricardo Guilherme Schmidt
2017-05-19 21:05:21 -03:00
parent 8bbefacf3d
commit 2d81753bf1
+6
View File
@@ -58,6 +58,12 @@ contract GitHubOracle is Owned, DGitI {
}
}
function __setController(address __newcontroller) only_owner {
userReg.setOwner(newContract);
repoReg.setOwner(newContract);
gitHubPoints.setOwner(newContract);
}
function update(string _repository, string _token) payable {
uint256 repoId = repositoryReg.getId(_repository);
if(repoId == 0) throw;