feat(primitives): derive Eq on relevant structs (#446)
This commit is contained in:
parent
1724f6acf0
commit
1b2616256f
3 changed files with 4 additions and 4 deletions
|
|
@ -768,7 +768,7 @@ pub struct VKeyWitness {
|
||||||
pub signature: Bytes,
|
pub signature: Bytes,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Serialize, Deserialize, Debug, PartialEq, Clone)]
|
#[derive(Serialize, Deserialize, Debug, PartialEq, Eq, Clone)]
|
||||||
pub enum NativeScript {
|
pub enum NativeScript {
|
||||||
ScriptPubkey(AddrKeyhash),
|
ScriptPubkey(AddrKeyhash),
|
||||||
ScriptAll(Vec<NativeScript>),
|
ScriptAll(Vec<NativeScript>),
|
||||||
|
|
|
||||||
|
|
@ -313,7 +313,7 @@ impl<'a> From<MintedTransactionBody<'a>> for TransactionBody {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Debug, PartialEq, Clone)]
|
#[derive(Debug, PartialEq, Eq, Clone)]
|
||||||
pub enum PseudoTransactionOutput<T> {
|
pub enum PseudoTransactionOutput<T> {
|
||||||
Legacy(LegacyTransactionOutput),
|
Legacy(LegacyTransactionOutput),
|
||||||
PostAlonzo(T),
|
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)]
|
#[cbor(map)]
|
||||||
pub struct PseudoPostAlonzoTransactionOutput<T1, T2> {
|
pub struct PseudoPostAlonzoTransactionOutput<T1, T2> {
|
||||||
#[n(0)]
|
#[n(0)]
|
||||||
|
|
|
||||||
|
|
@ -1179,7 +1179,7 @@ impl<C> minicbor::Encode<C> for GovActionId {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Debug, PartialEq, Clone)]
|
#[derive(Debug, PartialEq, Eq, Clone)]
|
||||||
pub enum PseudoTransactionOutput<T> {
|
pub enum PseudoTransactionOutput<T> {
|
||||||
Legacy(LegacyTransactionOutput),
|
Legacy(LegacyTransactionOutput),
|
||||||
PostAlonzo(T),
|
PostAlonzo(T),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue