File tree Expand file tree Collapse file tree 2 files changed +12
-3
lines changed Expand file tree Collapse file tree 2 files changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -215,10 +215,19 @@ export function handleAppealDecision(event: AppealDecision): void {
215
215
const disputeID = event . params . _disputeID ;
216
216
const dispute = Dispute . load ( disputeID . toString ( ) ) ;
217
217
if ( ! dispute ) return ;
218
+
219
+ // Load the current (previous) round
220
+ const previousRoundID = dispute . currentRound ;
221
+ const previousRound = Round . load ( previousRoundID ) ;
222
+ if ( previousRound ) {
223
+ previousRound . isCurrentRound = false ;
224
+ previousRound . save ( ) ;
225
+ }
226
+
218
227
const newRoundIndex = dispute . currentRoundIndex . plus ( ONE ) ;
219
- const roundID = `${ disputeID } -${ newRoundIndex . toString ( ) } ` ;
228
+ const newRoundID = `${ disputeID } -${ newRoundIndex . toString ( ) } ` ;
220
229
dispute . currentRoundIndex = newRoundIndex ;
221
- dispute . currentRound = roundID ;
230
+ dispute . currentRound = newRoundID ;
222
231
dispute . save ( ) ;
223
232
const roundInfo = contract . getRoundInfo ( disputeID , newRoundIndex ) ;
224
233
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @kleros/kleros-v2-subgraph" ,
3
- "version" : " 0.15.3 " ,
3
+ "version" : " 0.15.4 " ,
4
4
"drtVersion" : " 0.12.0" ,
5
5
"license" : " MIT" ,
6
6
"scripts" : {
You can’t perform that action at this time.
0 commit comments