bank ledger: add validation
bank ledger: add validation: a task in smol-software-harbor (Harbor dataset). Transactions of zero ( Tx::Deposit(0) , Tx::Withdraw(0) ) are meaningless but currently accepted and recorded. Add a variant ZeroAmount to LedgerError in src/lib.rs and make apply tx return Err(LedgerError::ZeroAmount)…
The task
Transactions of zero (`Tx::Deposit(0)`, `Tx::Withdraw(0)`) are meaningless but currently accepted and recorded. Add a variant `ZeroAmount` to `LedgerError` in `src/lib.rs` and make `apply_tx` return `Err(LedgerError::ZeroAmount)` for them, without touching the balance or the history. Run `cargo test --offline -q`.
Part of efederici/smol-software-harbor.