Beginner FriendlySolidity
100 EXP
View results
Submission Details
Severity: high
Valid

Missing ETH deposit functionality

Summary

In the InheritanceManagercontract there is no normal way to deposit ETH to the contract even though it's clear that the contract should manage ETH.

Vulnerability Details

Because there is not a deposit, receive, or fallbackfunction there is no normal way to deposit ETH to the InheritanceManagercontract making it harder to receive ETH. Using the selfdestructfunction is not optimal for depositing funds to the contract and is probably not what is intended.

Tools Used

Manual code review

Recommendations

Add a receivefunction to the contract:

contract InheritanceManager is Trustee {
// code as is
+ receive() external payable {}
}
Updates

Lead Judging Commences

0xtimefliez Lead Judge 6 months ago
Submission Judgement Published
Validated
Assigned finding tags:

Missing receive() or fallback() function

Support

FAQs

Can't find an answer? Chat with us on Discord, Twitter or Linkedin.