Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: VetoableSlasher #377

Merged
merged 2 commits into from
Jan 31, 2025

Conversation

neutiyoo
Copy link

@neutiyoo neutiyoo commented Jan 31, 2025

This pull request includes changes to the VetoableSlasher contract in the src/slashers/VetoableSlasher.sol file. The most important changes involve modifying function parameters and the constructor.

Changes to function parameters and constructor:

  • Removed the _slasher parameter from the constructor of VetoableSlasher (src/slashers/VetoableSlasher.sol).
  • Changed the params parameter from memory to calldata in the queueSlashingRequest function (src/slashers/VetoableSlasher.sol).
  • Changed the params parameter from memory to calldata in the _queueSlashingRequest function (src/slashers/VetoableSlasher.sol).

The '_slasher' parameter was not utilized within the contract, enhancing clarity by simplifying the constructor.
@neutiyoo neutiyoo changed the title refactor: remove unused '_slasher' constructor parameter refactor: VetoableSlasher Jan 31, 2025
@ypatil12 ypatil12 merged commit 25a57eb into Layr-Labs:test/slashing-release Jan 31, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants