diff --git a/src/ImpactEvaluator.sol b/src/ImpactEvaluator.sol index ef943ea..e0ab9ed 100644 --- a/src/ImpactEvaluator.sol +++ b/src/ImpactEvaluator.sol @@ -8,7 +8,7 @@ contract ImpactEvaluator is AccessControl { uint end; string[] measurementsCids; address payable[] participents; - uint[] participantScores; + uint[] scores; bool scoresSubmitted; string summaryText; } @@ -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; diff --git a/test/ImpactEvaluator.t.sol b/test/ImpactEvaluator.t.sol index c6d0a87..0ea3fe6 100644 --- a/test/ImpactEvaluator.t.sol +++ b/test/ImpactEvaluator.t.sol @@ -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);