Skip to content

Commit

Permalink
Move coordinator and taco application to contstructor
Browse files Browse the repository at this point in the history
  • Loading branch information
theref committed Aug 9, 2024
1 parent 14985eb commit cfd0748
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions contracts/contracts/coordination/InfractionCollector.sol
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ import "./Coordinator.sol";
import "../../threshold/ITACoChildApplication.sol";

contract InfractionCollector is OwnableUpgradeable {
Coordinator public coordinator;
Coordinator public immutable coordinator;

// Reference to the TACoChildApplication contract
ITACoChildApplication public tacoChildApplication;
ITACoChildApplication public immutable tacoChildApplication;

// infraction types
enum InfractionType {
Expand All @@ -20,11 +20,10 @@ contract InfractionCollector is OwnableUpgradeable {
// Mapping to keep track of reported infractions
mapping(uint32 => mapping(address => mapping(InfractionType => bool))) public infractions;

function initialize(
constructor(

Check failure on line 23 in contracts/contracts/coordination/InfractionCollector.sol

View workflow job for this annotation

GitHub Actions / linting

Replace ⏎········Coordinator·_coordinator,⏎········ITACoChildApplication·_tacoChildApplication⏎···· with Coordinator·_coordinator,·ITACoChildApplication·_tacoChildApplication
Coordinator _coordinator,
ITACoChildApplication _tacoChildApplication
) public initializer {
__Ownable_init(msg.sender);
) {
coordinator = _coordinator;
tacoChildApplication = _tacoChildApplication;
}
Expand Down

0 comments on commit cfd0748

Please sign in to comment.