Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MCTest displays This contract has a payable fallback function, but no receive ether function. #44

Open
naizo01 opened this issue Jun 12, 2024 · 0 comments
Labels
priority: medium Issues or pull requests with medium priority status: todo Issues or pull requests that need to be addressed

Comments

@naizo01
Copy link

naizo01 commented Jun 12, 2024

The MCTest is displaying a warning message:
"This contract has a payable fallback function, but no receive ether function. Consider adding a receive ether function.solidity(3628)"

To resolve this warning and improve the contract's functionality, please add the following function to the contract:

receive() external payable {}
@naizo01 naizo01 added priority: medium Issues or pull requests with medium priority status: todo Issues or pull requests that need to be addressed labels Jun 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority: medium Issues or pull requests with medium priority status: todo Issues or pull requests that need to be addressed
Projects
None yet
Development

No branches or pull requests

1 participant