Skip to content

Commit

Permalink
Fix prettier linting
Browse files Browse the repository at this point in the history
  • Loading branch information
theref committed Jul 31, 2024
1 parent 3bdcc8d commit 6ee69bc
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions contracts/contracts/coordination/InfractionCollector.sol
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import "./Coordinator.sol";
import "../../threshold/ITACoChildApplication.sol";

contract InfractionCollector is OwnableUpgradeable {

event InfractionReported(uint32 ritualId, address participant);
Coordinator public immutable coordinator;

Expand All @@ -17,10 +16,7 @@ contract InfractionCollector is OwnableUpgradeable {
// Mapping to keep track of reported infractions
mapping(uint32 => mapping(address => bool)) public infractions;

constructor(
Coordinator _coordinator,
ITACoChildApplication _tacoChildApplication
) {
constructor(Coordinator _coordinator, ITACoChildApplication _tacoChildApplication) {
coordinator = _coordinator;
tacoChildApplication = _tacoChildApplication;
}
Expand All @@ -42,7 +38,8 @@ contract InfractionCollector is OwnableUpgradeable {
ritualId,
stakingProviders[i]
);
if (participant.transcript.length == 0) { // Transcript TX wasn't posted
if (participant.transcript.length == 0) {
// Transcript TX wasn't posted
// Penalize the staking provider
tacoChildApplication.penalize(stakingProviders[i]);
infractions[ritualId][stakingProviders[i]] = true;
Expand Down

0 comments on commit 6ee69bc

Please sign in to comment.