Skip to content

Commit 12ed7b3

Browse files
adamdossamaxsam4
authored andcommitted
3.30 Remove OwnedProxy (#701)
* Audit fix * Fix * Moved variable to storage contract
1 parent 115edb6 commit 12ed7b3

File tree

3 files changed

+13
-93
lines changed

3 files changed

+13
-93
lines changed

contracts/datastore/DataStoreProxy.sol

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
pragma solidity ^0.5.0;
22

3-
import "../proxy/OwnedProxy.sol";
3+
import "../proxy/Proxy.sol";
44
import "./DataStoreStorage.sol";
55

66
/**
77
* @title DataStoreProxy Proxy
88
*/
9-
contract DataStoreProxy is DataStoreStorage, OwnedProxy {
9+
contract DataStoreProxy is DataStoreStorage, Proxy {
1010

1111
/**
1212
* @notice Constructor
1313
* @param _securityToken Address of the security token
1414
* @param _implementation representing the address of the new implementation to be set
1515
*/
1616
constructor(
17-
address _securityToken,
17+
address _securityToken,
1818
address _implementation
1919
)
2020
public
@@ -26,4 +26,11 @@ contract DataStoreProxy is DataStoreStorage, OwnedProxy {
2626
__implementation = _implementation;
2727
}
2828

29+
/**
30+
* @notice Internal function to provide the address of the implementation contract
31+
*/
32+
function _implementation() internal view returns(address) {
33+
return __implementation;
34+
}
35+
2936
}

contracts/datastore/DataStoreStorage.sol

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ pragma solidity ^0.5.0;
33
import "../interfaces/ISecurityToken.sol";
44

55
contract DataStoreStorage {
6+
// Address of the current implementation
7+
address internal __implementation;
8+
69
ISecurityToken public securityToken;
710

811
mapping (bytes32 => uint256) internal uintData;

contracts/proxy/OwnedProxy.sol

Lines changed: 0 additions & 90 deletions
This file was deleted.

0 commit comments

Comments
 (0)