Crowdsale.sol Operator != not compatible with types contract ERC20

Hi, I am trying to include crowdsale.sol in my ERC20 contract but I get these two lines are causig compatibility errors:

Line 56:

require(_token != address(0));

TypeError: Operator != not compatible with types contract ERC20 and address payable require (_token != address(0));

Line 193:

wallet.transfer(msg.value);

TypeError: “send” and “transfer” are only available for objects of type “address payable”, not “address”. wallet.transfer(msg.value);

1 Like

Hi @testingneverstop,

Have a look at: Simple ERC20 Crowdsale