@@ -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-
122113impl < State : ExposedState , Seal : ExposedSeal > Assign < State , Seal > {
123114 pub fn revealed ( seal : Seal , state : State ) -> Self { Assign :: Revealed { seal, state } }
124115
0 commit comments