I have created token contract with solidity ver. ^0.8.0 and now I want create crowdsale contract.
- Is there a way to combine crowdsale contract (solidity version 0.8.0) with token contract crowdsale (pragma 0.5.0) ?
When compiling using pragma as below
pragma solidity >=0.5.0 <=0.8.0;
getting error from older contract cuz for newer compiler some functions are wrote in wrong way.
- I was thinking to write crowdsale contract with solidity ver. 0.8.0 because openzeppelin doesn't offer in newest version of their contracts. It's just I'm worrying about security. I was also considering to write token contract with older solidity version (same as crowdsale contract which is 0.5.0 version), just don't know what's option is better? (for security reason) Any of you guys tried to write crowdsale contract with newer version of solidity than 0.5.0 ?