msg.sender not increasing the balance

I am trying to execute the following code obtained from[Solidity Tutorial][1] 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…

Using the correct/best solc version with Truffle and general tooling setup

I haven’t worked with Truffle/Solidity for a while and I am trying to get my environment/toolchain configure correctly. I have some questions regarding the compiler config. I was originally not setting the compiler config options in truffle-config.js and recently set it to 5.5 which appears as if it caused Truffle to download a new Docker…