I'm trying to fork a token contract and deploy it locally using ganache but I keep running into the following error:
I have tried to debug the error using truffle debug 'transaction' and find the following:
Now since there's no assert(), revert(), or require() statement I believe it's an out-of-gas exception error. However, one odd thing I've noticed is that after commenting out those two lines and trying to compile it still throws an error on those lines:
According to this post, comments do not affect the gas cost and I don't see how commented out code could be throwing one of the other errors.
Does anyone know what's going on here?



address(0)in constructor? – Kiasha Apr 27 '21 at 08:47.factory()in:uniswapV2Pair =IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this), _uniswapV2Router.WETH());– Kiasha Apr 27 '21 at 09:00