Skip to content

Commit

Permalink
Suppress warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
vp4242 committed Feb 20, 2024
1 parent c916979 commit e3a089e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions contracts/0.8.9/SepoliaDepositAdapter.sol
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ contract SepoliaDepositAdapter is IDepositContract, Ownable {

function recoverEth() external onlyOwner {
uint256 balance = address(this).balance;
// solhint-disable-next-line avoid-low-level-calls
(bool success,) = owner().call{value: balance}("");
if (!success) {
revert EthRecoverFailed();
Expand All @@ -80,6 +81,7 @@ contract SepoliaDepositAdapter is IDepositContract, Ownable {
bytes32 deposit_data_root
) override external payable {
originalContract.deposit{value: msg.value}(pubkey, withdrawal_credentials, signature, deposit_data_root);
// solhint-disable-next-line avoid-low-level-calls
(bool success,) = owner().call{value: msg.value}("");
if (!success) {
revert DepositFailed();
Expand Down

0 comments on commit e3a089e

Please sign in to comment.