diff --git a/src/definitions/transaction_type.rs b/src/definitions/transaction_type.rs index e5bea3eb3..6ec79919f 100644 --- a/src/definitions/transaction_type.rs +++ b/src/definitions/transaction_type.rs @@ -1,3 +1,6 @@ +/// TransactionType is an enum that represents the type of transaction. +/// +/// It is used in the transaction header and in the transaction execution info. #[derive(Debug, PartialEq, Copy, Clone, Eq, Hash)] pub enum TransactionType { Declare, @@ -9,6 +12,7 @@ pub enum TransactionType { } impl From for u64 { + /// Converts a [TransactionType] into a [u64]. fn from(tx_type: TransactionType) -> Self { match tx_type { TransactionType::Declare => 0,