From 2d81753bf14efaeb597845d64ec776324fc0188b Mon Sep 17 00:00:00 2001 From: Ricardo Guilherme Schmidt <3esmit@gmail.com> Date: Fri, 19 May 2017 21:05:21 -0300 Subject: [PATCH] upgradability to controlled contracts --- contracts/GitHubOracle.sol | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/contracts/GitHubOracle.sol b/contracts/GitHubOracle.sol index 1359da8..297e4a5 100644 --- a/contracts/GitHubOracle.sol +++ b/contracts/GitHubOracle.sol @@ -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;