msg.sender not increasing the balance

I am trying to execute the following code obtained from`Solidity Tutorial pragma solidity 0.5.4; contract ERC20Token { string name; mapping(address => uint256) public balances; function mint() payable public { balances[msg.sender] += msg.value;//use tx.origin, } } contract MyContract { address public token; address payable wallet; constructor(address payable _wallet, address _token) public { wallet = _wallet; token…