I am trying to use on the BSC testnet a crowdsale for a BEP20 token I've created. But I just have no idea where to begin. I see some codes for ERC20 crowdsales, etc. but cannot seem to put up a correct code to create a contract that will send the Token i've created to an adress that send BNB to the contract.
Can someone give me a hint how to begin to implement a simple crowdsale contract ?
I am able to buy tokens from the crowdsale contract (if I send tokens to the contract only. not working for the contract to spend tokens from other wallet) but only if I use the Buy token interface in remix. If I send BNB to the crowdsale contract it does not send tokens.