Skip to content

Commit b882a35

Browse files
author
ilitteri
committed
Remove safe
1 parent 471d0bf commit b882a35

File tree

3 files changed

+7
-9
lines changed

3 files changed

+7
-9
lines changed

claim_contracts/script-config/config.example.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
{
2-
"safe": "0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266",
32
"salt": "0x0000000000000000000000000000000000000000000000000000000000000000",
43
"deployer": "0x4e59b44847b379578588920cA78FbF26c0B4956C",
54
"foundation": "0x3C44CdDdB6a900fa2b585dd299e03d12FA4293BC",

claim_contracts/script/DeployAlignedToken.s.sol

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ contract DeployAlignedToken is Script {
2020
);
2121
string memory config_json = vm.readFile(path);
2222

23-
address _safe = stdJson.readAddress(config_json, ".safe");
2423
bytes32 _salt = stdJson.readBytes32(config_json, ".salt");
2524
address _deployer = stdJson.readAddress(config_json, ".deployer");
2625
address _foundation = stdJson.readAddress(config_json, ".foundation");
@@ -30,7 +29,7 @@ contract DeployAlignedToken is Script {
3029
);
3130

3231
TransparentUpgradeableProxy _tokenProxy = deployAlignedTokenProxy(
33-
_safe,
32+
_foundation,
3433
_salt,
3534
_deployer,
3635
_foundation,
@@ -44,13 +43,13 @@ contract DeployAlignedToken is Script {
4443
" with proxy admin: ",
4544
vm.toString(Utils.getAdminAddress(address(_tokenProxy))),
4645
" and owner: ",
47-
vm.toString(_safe)
46+
vm.toString(_foundation)
4847
)
4948
);
5049
}
5150

5251
function deployAlignedTokenProxy(
53-
address _proxyAdmin,
52+
address _proxyAdminOwner,
5453
bytes32 _salt,
5554
address _deployer,
5655
address _foundation,
@@ -61,7 +60,7 @@ contract DeployAlignedToken is Script {
6160

6261
bytes memory _alignedTokenDeploymentData = Utils
6362
.alignedTokenProxyDeploymentData(
64-
_proxyAdmin,
63+
_proxyAdminOwner,
6564
address(_token),
6665
_foundation,
6766
_claim

claim_contracts/script/Utils.sol

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ library Utils {
1414
address(uint160(uint256(keccak256("hevm cheat code"))));
1515
Vm internal constant vm = Vm(VM_ADDRESS);
1616

17-
function getAdminAddress(address proxy) internal view returns (address) {
17+
function getAdminAddress(address proxy) internal view returns (address) {
1818
bytes32 adminSlot = vm.load(proxy, ERC1967Utils.ADMIN_SLOT);
1919
return address(uint160(uint256(adminSlot)));
2020
}
@@ -88,7 +88,7 @@ library Utils {
8888
}
8989

9090
function alignedTokenProxyDeploymentData(
91-
address _proxyAdmin,
91+
address _proxyAdminOwner,
9292
address _implementation,
9393
address _foundation,
9494
address _claim
@@ -98,7 +98,7 @@ library Utils {
9898
type(TransparentUpgradeableProxy).creationCode,
9999
abi.encode(
100100
_implementation,
101-
_proxyAdmin,
101+
_proxyAdminOwner,
102102
alignedTokenInitData(_implementation, _foundation, _claim)
103103
)
104104
);

0 commit comments

Comments
 (0)