Skip to content

Commit 9271b99

Browse files
committed
fix: remove unused value from event (TRST-R01)
1 parent c9f8a2f commit 9271b99

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

packages/horizon/contracts/interfaces/internal/IHorizonStakingMain.sol

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -303,9 +303,8 @@ interface IHorizonStakingMain {
303303

304304
/**
305305
* @notice Emitted when the delegation slashing global flag is set.
306-
* @param enabled Whether delegation slashing is enabled or disabled.
307306
*/
308-
event DelegationSlashingEnabled(bool enabled);
307+
event DelegationSlashingEnabled();
309308

310309
// -- Errors: tokens
311310

packages/horizon/contracts/staking/HorizonStaking.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -585,7 +585,7 @@ contract HorizonStaking is HorizonStakingBase, IHorizonStakingMain {
585585
*/
586586
function setDelegationSlashingEnabled() external override onlyGovernor {
587587
_delegationSlashingEnabled = true;
588-
emit DelegationSlashingEnabled(_delegationSlashingEnabled);
588+
emit DelegationSlashingEnabled();
589589
}
590590

591591
/**

packages/horizon/test/shared/horizon-staking/HorizonStakingShared.t.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1367,7 +1367,7 @@ abstract contract HorizonStakingSharedTest is GraphBaseTest {
13671367
function _setDelegationSlashingEnabled() internal {
13681368
// setDelegationSlashingEnabled
13691369
vm.expectEmit();
1370-
emit IHorizonStakingMain.DelegationSlashingEnabled(true);
1370+
emit IHorizonStakingMain.DelegationSlashingEnabled();
13711371
staking.setDelegationSlashingEnabled();
13721372

13731373
// after

0 commit comments

Comments
 (0)