Skip to content

Commit

Permalink
refactor: use calldata instead of memory
Browse files Browse the repository at this point in the history
  • Loading branch information
neutiyoo committed Jan 31, 2025
1 parent f4b330a commit 6ab76c8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/slashers/VetoableSlasher.sol
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ contract VetoableSlasher is SlasherBase {
}

function queueSlashingRequest(
IAllocationManager.SlashingParams memory params
IAllocationManager.SlashingParams calldata params
) external virtual onlySlasher {
_queueSlashingRequest(params);
}
Expand Down Expand Up @@ -62,7 +62,7 @@ contract VetoableSlasher is SlasherBase {
}

function _queueSlashingRequest(
IAllocationManager.SlashingParams memory params
IAllocationManager.SlashingParams calldata params
) internal virtual {
uint256 requestId = nextRequestId++;
slashingRequests[requestId] = SlashingRequest({
Expand Down

0 comments on commit 6ab76c8

Please sign in to comment.