Skip to content
Prev Previous commit
fix: frozen tokens for null address
  • Loading branch information
fnanni-0 committed Jan 13, 2022
commit c28a9d946c1f89c35a1d9e1fc3c7b5d13f6a56a1
2 changes: 1 addition & 1 deletion contracts/src/kleros-v1/KlerosV1Governor.sol
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ contract KlerosV1Governor is IArbitrable, ITokenController {
for (uint256 voteID = 0; voteID < votesLengths[round]; voteID++) {
(address account, , , ) = klerosLiquid.getVote(_disputeID, round, voteID);
require(account != address(0x0) || isDrawingForbidden, "Juror not drawn yet.");
frozenTokens[account] += tokensAtStakePerJuror[round];
if (account != address(0x0)) frozenTokens[account] += tokensAtStakePerJuror[round];
}
isDisputeNotified[_disputeID][round] = true;
}
Expand Down