Skip to content

Commit 7ca176f

Browse files
committed
operation: remove Assign custom Eq implementation
1 parent 44df908 commit 7ca176f

1 file changed

Lines changed: 1 addition & 10 deletions

File tree

src/operation/assignments.rs

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ pub type AssignData<Seal> = Assign<RevealedData, Seal>;
7676
/// State data are assigned to a seal definition, which means that they are
7777
/// owned by a person controlling spending of the seal UTXO, unless the seal
7878
/// is closed, indicating that a transfer of ownership had taken place
79-
#[derive(Clone, Debug)]
79+
#[derive(Clone, Debug, PartialEq, Eq)]
8080
#[derive(StrictType, StrictDumb, StrictEncode, StrictDecode)]
8181
#[strict_type(
8282
lib = LIB_NAME_RGB_COMMIT,
@@ -110,15 +110,6 @@ impl<State: ExposedState, Seal: ExposedSeal> Ord for Assign<State, Seal> {
110110
}
111111
}
112112

113-
impl<State: ExposedState, Seal: ExposedSeal> PartialEq for Assign<State, Seal> {
114-
fn eq(&self, other: &Self) -> bool {
115-
self.to_confidential_seal() == other.to_confidential_seal()
116-
&& self.as_revealed_state() == other.as_revealed_state()
117-
}
118-
}
119-
120-
impl<State: ExposedState, Seal: ExposedSeal> Eq for Assign<State, Seal> {}
121-
122113
impl<State: ExposedState, Seal: ExposedSeal> Assign<State, Seal> {
123114
pub fn revealed(seal: Seal, state: State) -> Self { Assign::Revealed { seal, state } }
124115

0 commit comments

Comments
 (0)