Skip to content

Commit

Permalink
feat: change event names
Browse files Browse the repository at this point in the history
  • Loading branch information
gpsanant committed Oct 11, 2024
1 parent b88286e commit 890b933
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/contracts/core/DelegationManager.sol
Original file line number Diff line number Diff line change
Expand Up @@ -602,7 +602,7 @@ contract DelegationManager is

// Remove `withdrawalRoot` from pending roots
delete pendingWithdrawals[withdrawalRoot];
emit WithdrawalCompleted(withdrawalRoot);
emit SlashingWithdrawalCompleted(withdrawalRoot);
}

/**
Expand Down Expand Up @@ -718,7 +718,7 @@ contract DelegationManager is
// Place withdrawal in queue
pendingWithdrawals[withdrawalRoot] = true;

emit WithdrawalQueued(withdrawalRoot, withdrawal);
emit SlashingWithdrawalQueued(withdrawalRoot, withdrawal);
return withdrawalRoot;
}

Expand Down
5 changes: 3 additions & 2 deletions src/contracts/interfaces/IDelegationManager.sol
Original file line number Diff line number Diff line change
Expand Up @@ -206,10 +206,11 @@ interface IDelegationManagerEvents is IDelegationManagerTypes {
* @param withdrawalRoot Is the hash of the `withdrawal`.
* @param withdrawal Is the withdrawal itself.
*/
event WithdrawalQueued(bytes32 withdrawalRoot, Withdrawal withdrawal);
event SlashingWithdrawalQueued(bytes32 withdrawalRoot, Withdrawal withdrawal);

/// @notice Emitted when a queued withdrawal is completed
event WithdrawalCompleted(bytes32 withdrawalRoot);
event SlashingWithdrawalCompleted(bytes32 withdrawalRoot);

}

/**
Expand Down

0 comments on commit 890b933

Please sign in to comment.