Skip to content

Commit cd58dcf

Browse files
committed
fix: frozen tokens for null address
1 parent 2e2271a commit cd58dcf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

contracts/src/kleros-v1/KlerosV1Governor.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ contract KlerosV1Governor is IArbitrable, ITokenController {
139139
for (uint256 voteID = 0; voteID < votesLengths[round]; voteID++) {
140140
(address account, , , ) = klerosLiquid.getVote(_disputeID, round, voteID);
141141
require(account != address(0x0) || isDrawingForbidden, "Juror not drawn yet.");
142-
frozenTokens[account] += tokensAtStakePerJuror[round];
142+
if (account != address(0x0)) frozenTokens[account] += tokensAtStakePerJuror[round];
143143
}
144144
isDisputeNotified[_disputeID][round] = true;
145145
}

0 commit comments

Comments
 (0)