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

Contract InheritanceManager has no fallback or receive function

Summary

Contract InheritanceManager has no fallback or receive function to receive eth.

Vulnerability Details

Contract InheritanceManager has function sendETH to send Ether, function withdrawInheritedFunds is intended to send eth if _asset is 0. However, there is no way to send eth to the contract because it does not implement receive or fallback functions. Thus, the contract balance is always 0.

Impact

Contract does not support eth operations, while it is intended that the contract supports them..

Tools Used

manual review

Recommendations

Add a fallback function to the contract:

+fallback() external payable {
+}
Updates

Lead Judging Commences

0xtimefliez Lead Judge 9 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.

Give us feedback!