Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
klkvr committed Oct 30, 2024
1 parent 35b9a91 commit 21765f2
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions crates/consensus/src/transaction/legacy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -451,10 +451,7 @@ pub mod signed_legacy_serde {
}

/// Serializes signed transaction with `v` key for signature parity.
pub fn serialize<T, S>(
signed: &crate::Signed<T>,
serializer: S,
) -> Result<S::Ok, S::Error>
pub fn serialize<T, S>(signed: &crate::Signed<T>, serializer: S) -> Result<S::Ok, S::Error>
where
T: Transaction + Clone + Serialize,
S: serde::Serializer,
Expand All @@ -470,7 +467,7 @@ pub mod signed_legacy_serde {
}
.serialize(serializer)
}

/// Deserializes signed transaction expecting `v` key for signature parity.
pub fn deserialize<'de, T, D>(deserializer: D) -> Result<crate::Signed<T>, D::Error>
where
Expand Down

0 comments on commit 21765f2

Please sign in to comment.