'safeTransfer' in Crowdsale errors but works with 'transfer'

Hi @Crisco,

Welcome to the community :wave:

As you are looking at a crowdsale, I suggest going through: Points to consider when creating a fungible token (ERC20, ERC777)

Note: Crowdsales were removed in OpenZeppelin Contracts 3.x. They are only found in OpenZeppelin Contracts 2.x, the latest version is 2.5.1 and uses Solidity 0.5: https://docs.openzeppelin.com/contracts/2.x/crowdsales

One option is to use OpenZeppelin Contracts 2.5.1 Crowdsale as is and Solidity 0.5, see: Simple ERC20 Crowdsale. I would suggest looking at this to start to make sure that you have everything working as required.

I am not sure why you were having an issue with safeTransfer. Given that you are using your own token and can check it is ERC20 compliant, then you don’t need to use safeTransfer.