Hey @carboncoffee,
Seems like you've figured it out. However, you're re implementing the _mint function, and although it works, you can use super.mint() with the original ERC20Capped, you can see how this plays out by referring to the Solidity Inheritance docs
The ERC20Capped receives the cap during construction, and should be used like:
contract Token is ERC20, ..., ERC20Capped {
function _mint(address account, uint256 amount) internal override(ERC20Capped, ERC20) {
super._mint(account, amount);
}
}
Quick tested with the example I shared in the other thread and the cap work as expected.
Best