Skip to content

Commit

Permalink
Merge pull request #3094 from satyajeetx/patch-1
Browse files Browse the repository at this point in the history
Update tutorial_debug.md
  • Loading branch information
ryestew committed Jun 30, 2022
2 parents 9ec6ad9 + 7fecd59 commit ae8081f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/tutorial_debug.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@ contract Donation {
function moveFund(address payable _to, uint _amount) onlyowner public {
uint balance = address(this).balance;
uint amount = _amount;
if (_amount <= balance) {
if (amount <= balance) {
if (_to.send(balance)) {
emit fundMoved(_to, _amount);
emit fundMoved(_to, amount);
} else {
revert();
}
Expand Down

0 comments on commit ae8081f

Please sign in to comment.