Skip to content

Commit 0993be3

Browse files
committed
🐛 (bitcoin-wallet): fix bug to fulfill logic with withdraw test
1 parent a7e0581 commit 0993be3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pointers-and-errors/bitcoin-and-wallet.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ func (w *Wallet) Balance() Bitcoin {
2323
return w.balance
2424
}
2525

26-
// Withdraw -
26+
// Withdraw - deposit amount from wallet balance
2727
func (w *Wallet) Withdraw(amount Bitcoin) {
28-
28+
w.balance -= amount
2929
}

0 commit comments

Comments
 (0)