diff --git a/Lesson05/practice/IBank/IBank_part2.py b/Lesson05/practice/IBank/IBank_part2.py index 8160281..b48b3ed 100644 --- a/Lesson05/practice/IBank/IBank_part2.py +++ b/Lesson05/practice/IBank/IBank_part2.py @@ -88,8 +88,8 @@ def transfer(self, target_account: 'Account', amount: int) -> None: """ self.withdraw(amount, to_history=False) target_account.deposit(amount, to_history=False) - operation_my = Operation(amount, Operation.TRANSFER_OUT, target_account=target_account) - operation_target = Operation(amount, Operation.TRANSFER_IN, target_account=self) + operation_my = Operation(Operation.TRANSFER_OUT, amount, target_account=target_account, ) + operation_target = Operation(Operation.TRANSFER_IN, amount, target_account=self) self.__history.append(operation_my) target_account.__history.append(operation_target)