ParserError ( function )

ParserError: Expected a state variable declaration. If you intended this as a fallback function or a function to handle plain ether transactions, use the “fallback” keyword or the “receive” keyword instead.
function () external payable {

Does anyone have a solution?

I made dozens of errors today :rofl:


fallback() external payable


receive() external payable