Skip to content

Commit 36d642a

Browse files
neutiyoo0xClandestine
authored andcommitted
refactor: VetoableSlasher (#377)
1 parent 0545b89 commit 36d642a

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/slashers/VetoableSlasher.sol

+3-4
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,7 @@ contract VetoableSlasher is SlasherBase {
2020

2121
constructor(
2222
IAllocationManager _allocationManager,
23-
ISlashingRegistryCoordinator _slashingRegistryCoordinator,
24-
address _slasher
23+
ISlashingRegistryCoordinator _slashingRegistryCoordinator
2524
) SlasherBase(_allocationManager, _slashingRegistryCoordinator) {}
2625

2726
function initialize(address _vetoCommittee, address _slasher) external virtual initializer {
@@ -30,7 +29,7 @@ contract VetoableSlasher is SlasherBase {
3029
}
3130

3231
function queueSlashingRequest(
33-
IAllocationManager.SlashingParams memory params
32+
IAllocationManager.SlashingParams calldata params
3433
) external virtual onlySlasher {
3534
_queueSlashingRequest(params);
3635
}
@@ -63,7 +62,7 @@ contract VetoableSlasher is SlasherBase {
6362
}
6463

6564
function _queueSlashingRequest(
66-
IAllocationManager.SlashingParams memory params
65+
IAllocationManager.SlashingParams calldata params
6766
) internal virtual {
6867
uint256 requestId = nextRequestId++;
6968
slashingRequests[requestId] = SlashingRequest({

0 commit comments

Comments
 (0)