how do I know if the msg.sender is the owner (the person that deployed) of the contract or a random address that interacted with the contract? in this case for example:
address payable owner = msg.sender;
modifier onlyOwner(){
require(msg.sender == owner);
_;
}
function close() public onlyOwner {
selfdestruct(owner);
}
why isn't the msg.sender reset at each interaction?