I writed ERC20 contract and ICO contract for a test , but I meet a lot problem with compile problem.
My ERC20 contract have own constructor
but,I also need a ICO contract(a control)for passing variables.
this is ICO contract part , the first trying is by "constructor()public"
second trying is by "function"
but final test , I got the Error report
Got 0 expected 4! so , I think the problem is that ...
『 mTokenAddress = address(new ERC20(name, decimals, symbol, totalSupply)); 』
mTokenAddress in ICO contract is address type , i reference the solution
(How to Call contract inside another contarct in solidity version 0.5.2?)
I don't know what else I can fix now ,hope someone give some advice