PatrickAlphaC / smartcontract-lottery

MIT License
79 stars 113 forks source link

Explicitly define address as payable #65

Closed MatthewGarrad closed 2 years ago

MatthewGarrad commented 2 years ago

Creates a payable sender address to be pushed to the players array. Prevents TypeError when pushing in newer versions of Solidity.

Solc version: 0.8.7 CompilerError: solc returned the following errors: TypeError: Member "push" not found or not visible after argument-dependent lookup in address payable[] storage ref.

PatrickAlphaC commented 2 years ago

Thank yoU!