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

Missing `receive()` function in `MondrianWallet2` makes it impossible for the wallet owner to directly receive Ether.

Description

The receive() function would allow a smart contract wallet to accept plain Ether transfers. Meaning that when someone sends funds directly to the contract's address the receive() function is invoked. However, MondrianWallet2.sol does not implement the receive() function, nor a fallback() function.

Impact

The absence of the receive() function in MondrianWallet2.sol would prevent the smart contract wallet from accepting plain Ether transfers directly to its address, leading to failed transactions and potentially causing disruptions in services that rely on direct Ether transfers.

Tools Used

Manual review, vscode

Recommended Mitigation

Consider adding a receive() function to MondrianWallet2.sol contract.

+ receive() external payable {}
Updates

Lead Judging Commences

bube Lead Judge 12 months ago
Submission Judgement Published
Validated
Assigned finding tags:

Missing receive function

Support

FAQs

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