From a1ddd18f2f48e68b19d4c648dfbd1768bf708bbe Mon Sep 17 00:00:00 2001 From: mathias Date: Tue, 26 Mar 2024 10:19:08 +0100 Subject: [PATCH] added get_balance method --- src/wallet.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/wallet.py b/src/wallet.py index 0643293..c5070a2 100644 --- a/src/wallet.py +++ b/src/wallet.py @@ -30,3 +30,7 @@ def spend_money(self, amount, deferred=False): raise InsufficientAmount(f"Not enough available to spend {amount}") self.balance -= amount + + def get_balance(self): + return self.balance + \ No newline at end of file