Compilation error in Crowdsale contract

why happen this i use sample crowdsale

Because a newer version of solidity does not allow for that.

You will need to change address payable to address.

You will need to take some time and update the contracts and make sure it all still works on a test net.

thanks for your reply, i will try it now!

i have change, but still not working…


can i add you discord or tg. really wanna get help!!!

I suggest using Open Zeppelin contracts from their node modules, not GSN ones.

From there you should update your Solidity version to 0.8.4.

Then you can tackle the issue of changing the specific type of variable it is expecting.

i don’t know how to do that, i just wanna when received the eth and send token to them. not other function