The InheritanceManager::sendETH
function does not verify the contract’s balance before transferring ETH. If the contract lacks sufficient funds, the transaction will fail, causing gas wastage.
The function directly attempts to send ETH without ensuring the contract has enough balance.
If the contract’s balance is insufficient, the transaction will fail, leading to unnecessary gas consumption.
Gas wastage due to failed transactions.
Poor user experience as transactions may unexpectedly fail.
Foundry (Forge) for smart contract testing
Test case demonstrating the issue in InheritanceManagerTest.t.sol
Modify the InheritanceManager::sendETH
function to include a balance check before attempting to transfer ETH.
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.