feat(primitives): derive Eq on relevant structs (#446)

This commit is contained in:
Santiago Carmuega 2024-04-18 22:25:02 -03:00 committed by GitHub
parent 1724f6acf0
commit 1b2616256f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 4 additions and 4 deletions

View file

@ -768,7 +768,7 @@ pub struct VKeyWitness {
pub signature: Bytes,
}
#[derive(Serialize, Deserialize, Debug, PartialEq, Clone)]
#[derive(Serialize, Deserialize, Debug, PartialEq, Eq, Clone)]
pub enum NativeScript {
ScriptPubkey(AddrKeyhash),
ScriptAll(Vec<NativeScript>),

View file

@ -313,7 +313,7 @@ impl<'a> From<MintedTransactionBody<'a>> for TransactionBody {
}
}
#[derive(Debug, PartialEq, Clone)]
#[derive(Debug, PartialEq, Eq, Clone)]
pub enum PseudoTransactionOutput<T> {
Legacy(LegacyTransactionOutput),
PostAlonzo(T),
@ -368,7 +368,7 @@ impl<'b> From<MintedTransactionOutput<'b>> for TransactionOutput {
}
}
#[derive(Encode, Decode, Debug, PartialEq, Clone)]
#[derive(Encode, Decode, Debug, PartialEq, Eq, Clone)]
#[cbor(map)]
pub struct PseudoPostAlonzoTransactionOutput<T1, T2> {
#[n(0)]

View file

@ -1179,7 +1179,7 @@ impl<C> minicbor::Encode<C> for GovActionId {
}
}
#[derive(Debug, PartialEq, Clone)]
#[derive(Debug, PartialEq, Eq, Clone)]
pub enum PseudoTransactionOutput<T> {
Legacy(LegacyTransactionOutput),
PostAlonzo(T),