I set a constructor in Solidity (currently 0.8.7) The code is in following
address payable owner;
constructor() public {
owner = msg.sender;
}
But when i tried to compile the code, the
Warning: Visibility for constructor is ignored. If you want the contract to be non-deployable, making it "abstract" is sufficient. --> FunctionExample.sol:9:5: | 9 | constructor() public { | ^ (Relevant source part starts here and spans across multiple lines).
Could you please explain the error I have made? thank you very much