Skip to content

Commit

Permalink
feat(consensus): add From<ConsolidationRequest> for Request (#1083)
Browse files Browse the repository at this point in the history
consensus: add From<ConsolidationRequest> for Request
  • Loading branch information
tcoratger authored Jul 19, 2024
1 parent a414b4a commit 7f7b665
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions crates/consensus/src/request.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,12 @@ impl From<WithdrawalRequest> for Request {
}
}

impl From<ConsolidationRequest> for Request {
fn from(v: ConsolidationRequest) -> Self {
Self::ConsolidationRequest(v)
}
}

impl Request {
/// Whether this is a [`DepositRequest`].
pub const fn is_deposit_request(&self) -> bool {
Expand Down

0 comments on commit 7f7b665

Please sign in to comment.