@@ -3,7 +3,7 @@ import { DeployFunction } from "hardhat-deploy/types";
33import { prompt , print } from "gluegun" ;
44import { deployUpgradable } from "./utils/deployUpgradable" ;
55import { HomeChains , isSkipped } from "./utils" ;
6- import { getContractNames , getContractNamesFromNetwork } from "../scripts/utils/contracts" ;
6+ import { getContractNamesFromNetwork } from "../scripts/utils/contracts" ;
77
88const { bold } = print . colors ;
99
@@ -36,21 +36,7 @@ const deployUpgradeAll: DeployFunction = async (hre: HardhatRuntimeEnvironment)
3636 try {
3737 print . highlight ( `🔍 Validating upgrade of ${ bold ( contractName ) } ` ) ;
3838
39- const contractNameWithoutNeo = contractName . replace ( / N e o .* $ / , "" ) ;
4039 let compareStorageOptions = { contract : contractName } as any ;
41- if ( hre . network . name === "arbitrum" ) {
42- switch ( contractName ) {
43- case "KlerosCoreNeo" :
44- case "SortitionModuleNeo" :
45- compareStorageOptions = { deployedArtifact : `${ contractName } _Implementation` , contract : contractName } ;
46- break ;
47- default :
48- compareStorageOptions = {
49- deployedArtifact : `${ contractName } _Implementation` ,
50- contract : contractNameWithoutNeo ,
51- } ;
52- }
53- }
5440 await hre . run ( "compare-storage" , compareStorageOptions ) ;
5541 print . newline ( ) ;
5642 print . highlight ( `💣 Upgrading ${ bold ( contractName ) } ` ) ;
@@ -65,25 +51,12 @@ const deployUpgradeAll: DeployFunction = async (hre: HardhatRuntimeEnvironment)
6551 }
6652 print . info ( `Upgrading ${ contractName } ...` ) ;
6753
68- switch ( contractName ) {
69- case "DisputeKitClassicNeo" :
70- case "DisputeResolverNeo" :
71- await deployUpgradable ( deployments , contractName , {
72- contract : contractName ,
73- newImplementation : contractNameWithoutNeo ,
74- initializer,
75- from : deployer ,
76- args, // Warning: do not reinitialize existing state variables, only the new ones
77- } ) ;
78- break ;
79- default :
80- await deployUpgradable ( deployments , contractName , {
81- newImplementation : contractName ,
82- initializer,
83- from : deployer ,
84- args, // Warning: do not reinitialize existing state variables, only the new ones
85- } ) ;
86- }
54+ await deployUpgradable ( deployments , contractName , {
55+ newImplementation : contractName ,
56+ initializer,
57+ from : deployer ,
58+ args, // Warning: do not reinitialize existing state variables, only the new ones
59+ } ) ;
8760 print . info ( `Verifying ${ contractName } on Etherscan...` ) ;
8861 await hre . run ( "etherscan-verify" , { contractName : `${ contractName } _Implementation` } ) ;
8962 } catch ( err ) {
0 commit comments