Good morning, Can anyone help me I am testing code in remix and even deployment is giving me error.
this is contructor function code,
constructor() {
_name = "Farm CFRM";
_symbol = "CFRM";
_decimals = 18;
_tTotal = 100000000000000000000000000;
_rTotal = (MAX - (MAX % _tTotal));
buyBackUpperLimit = _tTotal.mul(1).div(10000);
_rOwned[_msgSender()] = _rTotal;
feeWallet = payable(_msgSender());
numTokensSellToAddToLiquidity = _tTotal.mul(1).div(1000);
IUniswapV2Router02 _pcsV2Router = IUniswapV2Router02(address(0x9Ac64Cc6e4415144C455BD8E4837Fea55603e5c3));
// Create a uniswap pair for this new token
pcsV2Pair = IUniswapV2Factory(_pcsV2Router.factory()).createPair(address(this), _pcsV2Router.WETH());
// set the rest of the contract variables
pcsV2Router = _pcsV2Router;
_isExcludedFromFee[_msgSender()] = true;
_isExcludedFromFee[address(this)] = true;
_taxFee = 1;
_liquidityFee = 1;
_burnFee = 1;
_buybackFee = 1;
_walletFee = 1;
gameRoles[msg.sender] = true;
// emit Transfer(address(0), _msgSender(), _tTotal);
}
Apr 13, 2022, 3:02 AM
revert
The transaction has been reverted to the initial state.
Note: The called function should be payable if you send value and the value you send should be less than your current balance.
Debug the transaction to get more information.
The transaction has been reverted to the initial state.
Note: The called function should be payable if you send value and the value you send should be less than your current balance.
Debug the transaction to get more information.
what was wrong in this contruct ?
Apr 13, 2022, 3:03 AM