Skip to content

Commit eede27f

Browse files
committed
Ledger: adding header doc for tx failure reasons
1 parent 67ea4f4 commit eede27f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

ledger/src/scan_state/transaction_logic.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,10 @@ use crate::zkapps::zkapp_logic::ZkAppCommandElt;
5656

5757
/// <https://github.com/MinaProtocol/mina/blob/2ee6e004ba8c6a0541056076aab22ea162f7eb3a/src/lib/mina_base/transaction_status.ml#L9>
5858
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]
59+
/// Transaction failure reasons.
60+
///
61+
/// When a transaction fails, the fee is still deducted from the fee payer,
62+
/// but no account updates are applied.
5963
pub enum TransactionFailure {
6064
Predicate,
6165
SourceNotPresent,

0 commit comments

Comments
 (0)