Hot answers tagged

2

You're trying to push a non-payable address to the array: manager is not payable. You'll need to change the type of manager to address payable: address payable public manager; function enter() public payable { require(value > 0.01 ether); players.push(manager); } Simply adding msg.sender (e.g. players.push(msg.sender)) to the array will work fine, ...


Only top voted, non community-wiki answers of a minimum length are eligible