Skip to content

Commit

Permalink
participantScores -> scores
Browse files Browse the repository at this point in the history
  • Loading branch information
juliangruber committed Sep 13, 2023
1 parent 217c95a commit 3121cc0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/ImpactEvaluator.sol
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ contract ImpactEvaluator is AccessControl {
uint end;
string[] measurementsCids;
address payable[] participents;
uint[] participantScores;
uint[] scores;
bool scoresSubmitted;
string summaryText;
}
Expand Down Expand Up @@ -84,7 +84,7 @@ contract ImpactEvaluator is AccessControl {
Round memory round = rounds[roundIndex];
require(!round.scoresSubmitted, "Scores already submitted");
round.participents = addresses;
round.participantScores = scores;
round.scores = scores;
round.summaryText = summaryText;
round.scoresSubmitted = true;
rounds[roundIndex] = round;
Expand Down
4 changes: 2 additions & 2 deletions test/ImpactEvaluator.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -101,9 +101,9 @@ contract ImpactEvaluatorTest is Test {

ImpactEvaluator.Round memory round = impactEvaluator.getRound(0);
assertEq(round.participents.length, 1);
assertEq(round.participantScores.length, 1);
assertEq(round.scores.length, 1);
assertEq(round.participents[0], addresses[0]);
assertEq(round.participantScores[0], scores[0]);
assertEq(round.scores[0], scores[0]);
assertEq(round.summaryText, "1 task performed");
assertEq(round.scoresSubmitted, true);

Expand Down

0 comments on commit 3121cc0

Please sign in to comment.