Skip to content

Commit

Permalink
added get_balance method
Browse files Browse the repository at this point in the history
  • Loading branch information
nicomaht committed Mar 26, 2024
1 parent f239f0a commit a1ddd18
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/wallet.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit a1ddd18

Please sign in to comment.