Skip to content

Commit

Permalink
feat: peer grading set grading function
Browse files Browse the repository at this point in the history
  • Loading branch information
pedrohba1 committed Jan 5, 2024
1 parent d0efbeb commit a9877ef
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions foundry/src/PeerGrading.sol
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,7 @@ contract PeerGrading {
// TODO: não permitir alocar grading se valor já foi alocado.
// O grading é uma vez só
require(participants[msg.sender].grading.length == 0, "Grading already set");
require(_gradings.length == numberAssignments, "Number of assignments differs from gradings length");
participants[msg.sender].grading = _gradings;
// TODO: emitir evento do participante que envio o grading
emit Graded(_gradings);
Expand Down

0 comments on commit a9877ef

Please sign in to comment.