I had created 100 million tokens and created a contract for crowdsale in test network
If user sends a 1 ether using contract address i am able to receive 1 ether and send 1000 tokens to user who send via metamask.
https://ropsten.etherscan.io/address/0x44db21d5cc6a773ec7ec68d5059e88325cc2a5a6
When user sends 1 ether i am getting 1 ether in my account and able to send 1000 tokens to user, but in my balance 1000 tokens were not reducing in my account
which function do i need to use to update crowdsale token balance in admin in metamask
token.transfer(msg.sender, token_amount);
is the way.