@@ -7,7 +7,6 @@ import "@openzeppelin/contracts/proxy/transparent/TransparentUpgradeableProxy.so
77import "@openzeppelin/contracts/proxy/transparent/ProxyAdmin.sol " ;
88import "../src/AlignedToken.sol " ;
99import "../src/ClaimableAirdrop.sol " ;
10- import "../src/ClaimableAirdropV2.sol " ;
1110
1211library Utils {
1312 // Cheatcodes address, 0x7109709ECfa91a80626fF3989D68f67F5b1DD12D.
@@ -86,7 +85,6 @@ library Utils {
8685 function alignedTokenProxyDeploymentData (
8786 address _proxyAdmin ,
8887 address _implementation ,
89- address _owner ,
9088 address _foundation ,
9189 address _claim
9290 ) internal pure returns (bytes memory ) {
@@ -96,26 +94,20 @@ library Utils {
9694 abi.encode (
9795 _implementation,
9896 _proxyAdmin,
99- alignedTokenInitData (
100- _implementation,
101- _owner,
102- _foundation,
103- _claim
104- )
97+ alignedTokenInitData (_implementation, _foundation, _claim)
10598 )
10699 );
107100 }
108101
109102 function alignedTokenInitData (
110103 address _implementation ,
111- address _owner ,
112104 address _foundation ,
113105 address _claim
114106 ) internal pure returns (bytes memory ) {
115107 return
116108 abi.encodeCall (
117109 AlignedToken (_implementation).initialize,
118- (_owner, _foundation, _claim)
110+ (_foundation, _claim)
119111 );
120112 }
121113
@@ -175,24 +167,6 @@ library Utils {
175167 );
176168 }
177169
178- function claimableAirdropUpgradeData (
179- address _proxy ,
180- address _newImplementation
181- ) internal pure returns (bytes memory ) {
182- return
183- abi.encodeCall (
184- ProxyAdmin (_newImplementation).upgradeAndCall,
185- (
186- ITransparentUpgradeableProxy (_proxy),
187- _newImplementation,
188- abi.encodeCall (
189- ClaimableAirdropV2 (_newImplementation).reinitialize,
190- ()
191- )
192- )
193- );
194- }
195-
196170 // ProxyAdmin utils
197171
198172 function deployProxyAdmin (address _safe ) internal returns (address ) {
0 commit comments