@@ -110,7 +110,7 @@ const deployArbitration: DeployFunction = async (hre: HardhatRuntimeEnvironment)
110
110
log : true ,
111
111
} ) ;
112
112
await core . addNewDisputeKit ( disputeKitShutter . address ) ;
113
- const disputeKitShutterID = Number ( await core . getDisputeKitsLength ( ) ) ;
113
+ const disputeKitShutterID = ( await core . getDisputeKitsLength ( ) ) - 1n ;
114
114
await core . enableDisputeKits ( Courts . GENERAL , [ disputeKitShutterID ] , true ) ; // enable disputeKitShutter on the General Court
115
115
116
116
const disputeKitGated = await deployUpgradable ( deployments , "DisputeKitGated" , {
@@ -119,7 +119,7 @@ const deployArbitration: DeployFunction = async (hre: HardhatRuntimeEnvironment)
119
119
log : true ,
120
120
} ) ;
121
121
await core . addNewDisputeKit ( disputeKitGated . address ) ;
122
- const disputeKitGatedID = Number ( await core . getDisputeKitsLength ( ) ) ;
122
+ const disputeKitGatedID = ( await core . getDisputeKitsLength ( ) ) - 1n ;
123
123
await core . enableDisputeKits ( Courts . GENERAL , [ disputeKitGatedID ] , true ) ; // enable disputeKitGated on the General Court
124
124
125
125
const disputeKitGatedShutter = await deployUpgradable ( deployments , "DisputeKitGatedShutter" , {
@@ -128,7 +128,7 @@ const deployArbitration: DeployFunction = async (hre: HardhatRuntimeEnvironment)
128
128
log : true ,
129
129
} ) ;
130
130
await core . addNewDisputeKit ( disputeKitGatedShutter . address ) ;
131
- const disputeKitGatedShutterID = Number ( await core . getDisputeKitsLength ( ) ) ;
131
+ const disputeKitGatedShutterID = ( await core . getDisputeKitsLength ( ) ) - 1n ;
132
132
await core . enableDisputeKits ( Courts . GENERAL , [ disputeKitGatedShutterID ] , true ) ; // enable disputeKitGatedShutter on the General Court
133
133
134
134
// Snapshot proxy
0 commit comments