From e3a089ed8a4fa3fd8963dc63d6810ada59719dd0 Mon Sep 17 00:00:00 2001 From: VP Date: Tue, 20 Feb 2024 16:21:42 +0100 Subject: [PATCH] Suppress warnings --- contracts/0.8.9/SepoliaDepositAdapter.sol | 2 ++ 1 file changed, 2 insertions(+) diff --git a/contracts/0.8.9/SepoliaDepositAdapter.sol b/contracts/0.8.9/SepoliaDepositAdapter.sol index 25a1e8958..a4f251f62 100644 --- a/contracts/0.8.9/SepoliaDepositAdapter.sol +++ b/contracts/0.8.9/SepoliaDepositAdapter.sol @@ -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(); @@ -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();