Skip to content

Commit

Permalink
gm
Browse files Browse the repository at this point in the history
  • Loading branch information
gmh5225 committed Dec 18, 2024
1 parent 75576a6 commit be47667
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Bank.sol
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,9 @@ contract Bank is Ownable, ReentrancyGuardTransient, Pausable {
// Transfer fixedly uses 2300 gas, which may not be enough in some cases
// payable(admin).transfer(amount);
Address.sendValue(payable(admin), amount);

// Update the msg.sender's balance
balances[msg.sender] -= amount;
}
}

Expand Down

0 comments on commit be47667

Please sign in to comment.