I am learning soildity.
I created a fixed supply token. My token supply is 1000000 with 0 decimal places. Now, I want to transfer tokens from using new contract, so I created a new contract named Crowdsale. Whenever I am transfring the token from crowdsale contract it gives an error.
"transact to Crowdsale.(fallback) errored: VM error: revert. revert The transaction has been reverted to the initial state. Note: The constructor should be payable if you send value. Debug the transaction to get more information. "
Note: I am passing the token owner address to the Crowdsale contract at the time of deploying.
you can find my contract using below link:
https://github.com/maksa14/Contracts/blob/master/Test/TokenCrowdsale.sol