I’m trying to fork NotSafeMoon but i’m getting the above error when deploying the contract to testnet. Based on the error message, a function should be “payable” but I can’t tell which one. Hoping someone could help me. thanks
When I clicked on “debug” on remix, it points to the constructor. This is the constructor:
constructor () {
_rOwned[_msgSender()] = _rTotal;
IUniswapV2Router02 _uniswapV2Router = IUniswapV2Router02(0x10ED43C718714eb63d5aA57B78B54704E256024E); // binance PANCAKE V2
//IUniswapV2Router02 _uniswapV2Router = IUniswapV2Router02(0x05fF2B0DB69458A0750badebc4f9e13aDd608C7F); // binance PANCAKE V1
//IUniswapV2Router02 _uniswapV2Router = IUniswapV2Router02(0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D); // Ethereum mainnet, Ropsten, Rinkeby, Görli, and Kovan
uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this), _uniswapV2Router.WETH());
uniswapV2Router = _uniswapV2Router;
_isExcludedFromFee[owner()] = true;
_isExcludedFromFee[address(this)] = true;
_isExcludedFromReward[address(this)] = true;
_isExcludedFromFee[BURN_ADDRESS] = true;
_isExcludedFromReward[BURN_ADDRESS] = true;
emit Transfer(address(0), _msgSender(), _tTotal);
}