Skip to content

refactor: VetoableSlasher #377

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

Merged
merged 2 commits into from
Jan 31, 2025

Conversation

neutiyoo
Copy link
Contributor

@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
0xClandestine pushed a commit that referenced this pull request Feb 5, 2025
stevennevins added a commit that referenced this pull request Feb 5, 2025
* fix: remappings

* fix: remove unused OnlySlasher error (#376)

* refactor: VetoableSlasher (#377)

* chore: use inheritdoc for SlashingRegCoord (#378)

* test: slasher contracts and add some natspec

* chore: unneeded comment

* chore: redundant comments

* test: more extensive setup for slashOperator

* test: integrate core deployment lib

* test: unit test slashing

* test: vetoable slasher

* chore: forge fmt

* chore: format and solve interfaces with inheritdoc

---------

Co-authored-by: clandestine.eth <[email protected]>
Co-authored-by: Noel <[email protected]>
Co-authored-by: Yash Patil <[email protected]>
0xClandestine pushed a commit that referenced this pull request Feb 6, 2025
0xClandestine added a commit that referenced this pull request Feb 6, 2025
* fix: remappings

* fix: remove unused OnlySlasher error (#376)

* refactor: VetoableSlasher (#377)

* chore: use inheritdoc for SlashingRegCoord (#378)

* test: slasher contracts and add some natspec

* chore: unneeded comment

* chore: redundant comments

* test: more extensive setup for slashOperator

* test: integrate core deployment lib

* test: unit test slashing

* test: vetoable slasher

* chore: forge fmt

* chore: format and solve interfaces with inheritdoc

---------

Co-authored-by: clandestine.eth <[email protected]>
Co-authored-by: Noel <[email protected]>
Co-authored-by: Yash Patil <[email protected]>
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