Skip to content

Commit

Permalink
fix: remove unused value from event (TRST-R01)
Browse files Browse the repository at this point in the history
  • Loading branch information
Maikol committed Dec 4, 2024
1 parent c9f8a2f commit 9271b99
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -303,9 +303,8 @@ interface IHorizonStakingMain {

/**
* @notice Emitted when the delegation slashing global flag is set.
* @param enabled Whether delegation slashing is enabled or disabled.
*/
event DelegationSlashingEnabled(bool enabled);
event DelegationSlashingEnabled();

// -- Errors: tokens

Expand Down
2 changes: 1 addition & 1 deletion packages/horizon/contracts/staking/HorizonStaking.sol
Original file line number Diff line number Diff line change
Expand Up @@ -585,7 +585,7 @@ contract HorizonStaking is HorizonStakingBase, IHorizonStakingMain {
*/
function setDelegationSlashingEnabled() external override onlyGovernor {
_delegationSlashingEnabled = true;
emit DelegationSlashingEnabled(_delegationSlashingEnabled);
emit DelegationSlashingEnabled();
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1367,7 +1367,7 @@ abstract contract HorizonStakingSharedTest is GraphBaseTest {
function _setDelegationSlashingEnabled() internal {
// setDelegationSlashingEnabled
vm.expectEmit();
emit IHorizonStakingMain.DelegationSlashingEnabled(true);
emit IHorizonStakingMain.DelegationSlashingEnabled();
staking.setDelegationSlashingEnabled();

// after
Expand Down

0 comments on commit 9271b99

Please sign in to comment.