Skip to content

Commit

Permalink
3.30 Remove OwnedProxy (#701)
Browse files Browse the repository at this point in the history
* Audit fix

* Fix

* Moved variable to storage contract
  • Loading branch information
adamdossa authored and maxsam4 committed Jun 12, 2019
1 parent 115edb6 commit 12ed7b3
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 93 deletions.
13 changes: 10 additions & 3 deletions contracts/datastore/DataStoreProxy.sol
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
pragma solidity ^0.5.0;

import "../proxy/OwnedProxy.sol";
import "../proxy/Proxy.sol";
import "./DataStoreStorage.sol";

/**
* @title DataStoreProxy Proxy
*/
contract DataStoreProxy is DataStoreStorage, OwnedProxy {
contract DataStoreProxy is DataStoreStorage, Proxy {

/**
* @notice Constructor
* @param _securityToken Address of the security token
* @param _implementation representing the address of the new implementation to be set
*/
constructor(
address _securityToken,
address _securityToken,
address _implementation
)
public
Expand All @@ -26,4 +26,11 @@ contract DataStoreProxy is DataStoreStorage, OwnedProxy {
__implementation = _implementation;
}

/**
* @notice Internal function to provide the address of the implementation contract
*/
function _implementation() internal view returns(address) {
return __implementation;
}

}
3 changes: 3 additions & 0 deletions contracts/datastore/DataStoreStorage.sol
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ pragma solidity ^0.5.0;
import "../interfaces/ISecurityToken.sol";

contract DataStoreStorage {
// Address of the current implementation
address internal __implementation;

ISecurityToken public securityToken;

mapping (bytes32 => uint256) internal uintData;
Expand Down
90 changes: 0 additions & 90 deletions contracts/proxy/OwnedProxy.sol

This file was deleted.

0 comments on commit 12ed7b3

Please sign in to comment.