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 {
215215 const disputeID = event . params . _disputeID ;
216216 const dispute = Dispute . load ( disputeID . toString ( ) ) ;
217217 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+
218227 const newRoundIndex = dispute . currentRoundIndex . plus ( ONE ) ;
219- const roundID = `${ disputeID } -${ newRoundIndex . toString ( ) } ` ;
228+ const newRoundID = `${ disputeID } -${ newRoundIndex . toString ( ) } ` ;
220229 dispute . currentRoundIndex = newRoundIndex ;
221- dispute . currentRound = roundID ;
230+ dispute . currentRound = newRoundID ;
222231 dispute . save ( ) ;
223232 const roundInfo = contract . getRoundInfo ( disputeID , newRoundIndex ) ;
224233
Original file line number Diff line number Diff line change 11{
22 "name" : " @kleros/kleros-v2-subgraph" ,
3- "version" : " 0.15.3 " ,
3+ "version" : " 0.15.4 " ,
44 "drtVersion" : " 0.12.0" ,
55 "license" : " MIT" ,
66 "scripts" : {
You can’t perform that action at this time.
0 commit comments