Hi, Iโm a beginner at creating contracts, Iโve error when I deploy your contract code with truffle and ganache-cli:
"Owo" hit a require or revert statement somewhere in its constructor. Try:
IUniswapV2Router02 _uniswapV2Router = IUniswapV2Router02(0x10ED43C718714eb63d5aA57B78B54704E256024E);
// pancakeswapv2 for BSC network
// Create a uniswap pair for this new token
uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory())
.createPair(address(this), _uniswapV2Router.WETH());
// set the rest of the contract variables
uniswapV2Router = _uniswapV2Router;
// Exclude owner and this contract from fee
_isExcludedFromFee[owner()] = true;
_isExcludedFromFee[address(this)] = true;
emit Transfer(address(0), _msgSender(), _tTotal);
}
what's the problem mate? If possible, can you send me a comfortable deploy.js file for this contract or anything I need? Thanks.