HF RL Explorer

bank accounts: fix bug

bank accounts: fix bug: a task in smol-software-harbor (Harbor dataset). Un bonifico fallito lascia i conti in uno stato incoerente: se il conto di origine non ha fondi sufficienti, transfer() in bank/account.py ha già accreditato il destinatario (il test test failed transfer changes nothing…

The task

Un bonifico fallito lascia i conti in uno stato incoerente: se il conto di origine non ha fondi sufficienti, `transfer()` in `bank/account.py` ha già accreditato il destinatario (il test `test_failed_transfer_changes_nothing` fallisce). Correggi `transfer()` in modo che, se il prelievo fallisce, nessun conto cambi.…

Part of efederici/smol-software-harbor.