File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -153,17 +153,15 @@ export function handleChoiceFunded(event: ChoiceFunded): void {
153
153
const numberOfRounds = klerosCore . getNumberOfRounds ( BigInt . fromString ( coreDisputeID ) ) ;
154
154
const roundInfo = klerosCore . getRoundInfo ( BigInt . fromString ( coreDisputeID ) , numberOfRounds . minus ( ONE ) ) ;
155
155
const appealCost = roundInfo . totalFeesForJurors ;
156
- const currentDisputeKitID = roundInfo . disputeKitID ;
157
156
158
157
localRound . feeRewards = localRound . feeRewards . minus ( appealCost ) ;
159
158
160
- const newRoundInfo = klerosCore . getRoundInfo ( BigInt . fromString ( coreDisputeID ) , numberOfRounds ) ;
161
- const newDisputeKitID = newRoundInfo . disputeKitID ;
159
+ const newDisputeKitID = roundInfo . disputeKitID ;
162
160
163
161
const localDispute = ClassicDispute . load ( `${ disputeKitID } -${ coreDisputeID } ` ) ;
164
162
if ( ! localDispute ) return ;
165
163
166
- if ( currentDisputeKitID === newDisputeKitID ) {
164
+ if ( BigInt . fromString ( disputeKitID ) === newDisputeKitID ) {
167
165
const newRoundIndex = localDispute . currentLocalRoundIndex . plus ( ONE ) ;
168
166
const numberOfChoices = localDispute . numberOfChoices ;
169
167
localDispute . currentLocalRoundIndex = newRoundIndex ;
You can’t perform that action at this time.
0 commit comments