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 (
144
144
await sleep ( 180 ) ;
145
145
} else {
146
146
console . log ( `CAUTION: Skpping storage layout verification!` ) ;
147
- console . log ( `CANCEL NOW to stop, this action is not reversable` ) ;
148
- await sleep ( 10 ) ;
149
147
const newImpl = await deployContract (
150
148
ethers ,
151
149
contractName ,
@@ -158,17 +156,13 @@ const upgradeProxyContract = async (
158
156
console . log ( `New implementation for ${ contractName } is at` , newImplAddress ) ;
159
157
160
158
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 ) ;
164
162
165
163
await proxyAdmin
166
164
. connect ( signer )
167
- . upgrade (
168
- proxy . address ,
169
- '0x82E415d7F43D2f56d431124c58221Faa249Ded42' ,
170
- txParams ,
171
- ) ;
165
+ . upgrade ( proxy . address , newImplAddress , txParams ) ;
172
166
} else {
173
167
console . log ( 'Signer not proxy onwer, cant upgrade' ) ;
174
168
console . log (
You can’t perform that action at this time.
0 commit comments