Skip to content

Commit

Permalink
Update upgrade-proxy.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
Amxx authored Nov 21, 2023
1 parent d4a6803 commit efcbc26
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/plugin-hardhat/src/upgrade-proxy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export function makeUpgradeProxy(hre: HardhatRuntimeEnvironment, defenderModule:
if (isEmptySlot(adminAddress) || adminBytecode === '0x') {
// No admin contract: use ITransparentUpgradeableProxy to get proxiable interface
const upgradeInterfaceVersion = await getUpgradeInterfaceVersion(provider, proxyAddress);
switch(upgradeInterfaceVersion) {
switch (upgradeInterfaceVersion) {
case undefined: {
const proxy = await attachITransparentUpgradeableProxyV4(hre, proxyAddress, signer);
return (nextImpl, call) => call
Expand All @@ -76,7 +76,7 @@ export function makeUpgradeProxy(hre: HardhatRuntimeEnvironment, defenderModule:
} else {
// Admin contract: redirect upgrade call through it
const upgradeInterfaceVersion = await getUpgradeInterfaceVersion(provider, adminAddress);
switch(upgradeInterfaceVersion) {
switch (upgradeInterfaceVersion) {
case undefined: {
const admin = await attachProxyAdminV4(hre, adminAddress, signer);
return (nextImpl, call) => call
Expand Down

0 comments on commit efcbc26

Please sign in to comment.