Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
shan8851 committed Sep 19, 2024
1 parent a6acca5 commit 028b6bd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions contracts/src/Faucet.sol
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ contract Faucet is Ownable, ReentrancyGuard {
require(address(this).balance >= payoutAmount, "Insufficient balance");
require(allowedToRequestPayout(msg.sender), "Wait time not elapsed");

(bool sent, ) = userAddress.call{value: payoutAmount}("");
(bool sent,) = userAddress.call{value: payoutAmount}("");
require(sent, "Failed to send Ether");

totalPayouts++;
Expand Down Expand Up @@ -124,7 +124,7 @@ contract Faucet is Ownable, ReentrancyGuard {
/// @dev This function can only be called by the contract owner
function withdrawEth() public onlyOwner {
uint256 balance = address(this).balance;
(bool sent, ) = owner().call{value: balance}("");
(bool sent,) = owner().call{value: balance}("");
require(sent, "Failed to send Ether");
totalFaucetFunds = 0;
}
Expand Down
1 change: 0 additions & 1 deletion contracts/test/Faucet.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -46,5 +46,4 @@ contract FaucetTest is Test {
faucet.setPayoutAmt(0.5 ether);
assertEq(faucet.payoutAmount(), 0.5 ether);
}

}

0 comments on commit 028b6bd

Please sign in to comment.