@@ -33,7 +33,7 @@ pub type TransactionTag = Vec<u8>;
33
33
34
34
/// An invalid transaction validity.
35
35
#[ derive( Clone , PartialEq , Eq , Encode , Decode , Copy , RuntimeDebug ) ]
36
- #[ cfg_attr( feature = "std" , derive( serde:: Serialize ) ) ]
36
+ #[ cfg_attr( feature = "std" , derive( serde:: Serialize , serde :: Deserialize ) ) ]
37
37
pub enum InvalidTransaction {
38
38
/// The call of the transaction is not expected.
39
39
Call ,
@@ -113,7 +113,7 @@ impl From<InvalidTransaction> for &'static str {
113
113
114
114
/// An unknown transaction validity.
115
115
#[ derive( Clone , PartialEq , Eq , Encode , Decode , Copy , RuntimeDebug ) ]
116
- #[ cfg_attr( feature = "std" , derive( serde:: Serialize ) ) ]
116
+ #[ cfg_attr( feature = "std" , derive( serde:: Serialize , serde :: Deserialize ) ) ]
117
117
pub enum UnknownTransaction {
118
118
/// Could not lookup some information that is required to validate the transaction.
119
119
CannotLookup ,
@@ -137,7 +137,7 @@ impl From<UnknownTransaction> for &'static str {
137
137
138
138
/// Errors that can occur while checking the validity of a transaction.
139
139
#[ derive( Clone , PartialEq , Eq , Encode , Decode , Copy , RuntimeDebug ) ]
140
- #[ cfg_attr( feature = "std" , derive( serde:: Serialize ) ) ]
140
+ #[ cfg_attr( feature = "std" , derive( serde:: Serialize , serde :: Deserialize ) ) ]
141
141
pub enum TransactionValidityError {
142
142
/// The transaction is invalid.
143
143
Invalid ( InvalidTransaction ) ,
0 commit comments