Skip to content
This repository has been archived by the owner on Nov 27, 2024. It is now read-only.

Commit

Permalink
receive payable
Browse files Browse the repository at this point in the history
  • Loading branch information
0xrajath committed Apr 9, 2024
1 parent fedf515 commit 66b34bd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/mock/MockRewardsContract.sol
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ contract MockRewardsContract {
REWARD_CLAIMER = rewardClaimer;
}

receive() external payable {}

function withdrawETH() external payable onlyRewardClaimer {
emit ethWithdrawn(address(this), REWARD_CLAIMER, address(this).balance);
Address.sendValue(payable(REWARD_CLAIMER), address(this).balance);
Expand Down

0 comments on commit 66b34bd

Please sign in to comment.