@@ -110,7 +110,7 @@ const deployArbitration: DeployFunction = async (hre: HardhatRuntimeEnvironment)
110110 log : true ,
111111 } ) ;
112112 await core . addNewDisputeKit ( disputeKitShutter . address ) ;
113- const disputeKitShutterID = Number ( await core . getDisputeKitsLength ( ) ) ;
113+ const disputeKitShutterID = ( await core . getDisputeKitsLength ( ) ) - 1n ;
114114 await core . enableDisputeKits ( Courts . GENERAL , [ disputeKitShutterID ] , true ) ; // enable disputeKitShutter on the General Court
115115
116116 const disputeKitGated = await deployUpgradable ( deployments , "DisputeKitGated" , {
@@ -119,7 +119,7 @@ const deployArbitration: DeployFunction = async (hre: HardhatRuntimeEnvironment)
119119 log : true ,
120120 } ) ;
121121 await core . addNewDisputeKit ( disputeKitGated . address ) ;
122- const disputeKitGatedID = Number ( await core . getDisputeKitsLength ( ) ) ;
122+ const disputeKitGatedID = ( await core . getDisputeKitsLength ( ) ) - 1n ;
123123 await core . enableDisputeKits ( Courts . GENERAL , [ disputeKitGatedID ] , true ) ; // enable disputeKitGated on the General Court
124124
125125 const disputeKitGatedShutter = await deployUpgradable ( deployments , "DisputeKitGatedShutter" , {
@@ -128,7 +128,7 @@ const deployArbitration: DeployFunction = async (hre: HardhatRuntimeEnvironment)
128128 log : true ,
129129 } ) ;
130130 await core . addNewDisputeKit ( disputeKitGatedShutter . address ) ;
131- const disputeKitGatedShutterID = Number ( await core . getDisputeKitsLength ( ) ) ;
131+ const disputeKitGatedShutterID = ( await core . getDisputeKitsLength ( ) ) - 1n ;
132132 await core . enableDisputeKits ( Courts . GENERAL , [ disputeKitGatedShutterID ] , true ) ; // enable disputeKitGatedShutter on the General Court
133133
134134 // Snapshot proxy
0 commit comments