The InheritanceManager.sol smart contract is currently unable to receive ETH payments. For a contract to accept ETH, it must implement the receive or fallback function. As InheritanceManager.sol is intended to function like a wallet, it is essential for it to support ETH transactions, which is a core feature of any wallet
The following test which can be added to InheritanceManagerTest.t.sol demonstrates the issue.
This bug would impact the ability for the smart contract to receive ether payment which is crucial for it to work like a backup wallet
Foundry test
To resolve this issue, add the receive and fallback functions to InheritanceManager.sol as shown below:
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.