File tree Expand file tree Collapse file tree 1 file changed +4
-10
lines changed Expand file tree Collapse file tree 1 file changed +4
-10
lines changed Original file line number Diff line number Diff line change @@ -144,8 +144,6 @@ const upgradeProxyContract = async (
144144 await sleep ( 180 ) ;
145145 } else {
146146 console . log ( `CAUTION: Skpping storage layout verification!` ) ;
147- console . log ( `CANCEL NOW to stop, this action is not reversable` ) ;
148- await sleep ( 10 ) ;
149147 const newImpl = await deployContract (
150148 ethers ,
151149 contractName ,
@@ -158,17 +156,13 @@ const upgradeProxyContract = async (
158156 console . log ( `New implementation for ${ contractName } is at` , newImplAddress ) ;
159157
160158 if ( ( await proxyAdmin . owner ( ) ) == ( await signer . getAddress ( ) ) ) {
161- await proxyAdmin
162- . connect ( signer )
163- . upgrade ( proxy . address , newImplAddress , txParams ) ;
159+ console . log ( `CAUTION: Executing live upgrade!` ) ;
160+ console . log ( `CANCEL NOW to stop, this action is not reversable` ) ;
161+ await sleep ( 15 ) ;
164162
165163 await proxyAdmin
166164 . connect ( signer )
167- . upgrade (
168- proxy . address ,
169- '0x82E415d7F43D2f56d431124c58221Faa249Ded42' ,
170- txParams ,
171- ) ;
165+ . upgrade ( proxy . address , newImplAddress , txParams ) ;
172166 } else {
173167 console . log ( 'Signer not proxy onwer, cant upgrade' ) ;
174168 console . log (
You can’t perform that action at this time.
0 commit comments