@@ -104,31 +104,31 @@ const deployArbitration: DeployFunction = async (hre: HardhatRuntimeEnvironment)
104104 }
105105
106106 // Extra dispute kits
107- const disputeKitShutterID = 2 ;
108107 const disputeKitShutter = await deployUpgradable ( deployments , "DisputeKitShutter" , {
109108 from : deployer ,
110109 args : [ deployer , core . target , weth . target , classicDisputeKitID ] ,
111110 log : true ,
112111 } ) ;
113112 await core . addNewDisputeKit ( disputeKitShutter . address ) ;
113+ const disputeKitShutterID = Number ( await core . getDisputeKitsLength ( ) ) ;
114114 await core . enableDisputeKits ( Courts . GENERAL , [ disputeKitShutterID ] , true ) ; // enable disputeKitShutter on the General Court
115115
116- const disputeKitGatedID = 3 ;
117116 const disputeKitGated = await deployUpgradable ( deployments , "DisputeKitGated" , {
118117 from : deployer ,
119118 args : [ deployer , core . target , weth . target , classicDisputeKitID ] ,
120119 log : true ,
121120 } ) ;
122121 await core . addNewDisputeKit ( disputeKitGated . address ) ;
122+ const disputeKitGatedID = Number ( await core . getDisputeKitsLength ( ) ) ;
123123 await core . enableDisputeKits ( Courts . GENERAL , [ disputeKitGatedID ] , true ) ; // enable disputeKitGated on the General Court
124124
125- const disputeKitGatedShutterID = 4 ;
126125 const disputeKitGatedShutter = await deployUpgradable ( deployments , "DisputeKitGatedShutter" , {
127126 from : deployer ,
128127 args : [ deployer , core . target , weth . target , disputeKitShutterID ] , // Does not jump to DKClassic
129128 log : true ,
130129 } ) ;
131130 await core . addNewDisputeKit ( disputeKitGatedShutter . address ) ;
131+ const disputeKitGatedShutterID = Number ( await core . getDisputeKitsLength ( ) ) ;
132132 await core . enableDisputeKits ( Courts . GENERAL , [ disputeKitGatedShutterID ] , true ) ; // enable disputeKitGatedShutter on the General Court
133133
134134 // Snapshot proxy
0 commit comments