Safemoon Fork Error

When i make deploy i get this error.

Gas estimation errored with the following message (see below). The transaction execution will likely fail. Do you want to force sending?

Internal JSON-RPC error. { “code”: -32000, “message”: “execution reverted” }

Can anyone help me? Thank you

Did you change router address?

1 Like

nope. i find your old posts about changing router adress but i didnt find :slight_smile: can you help me

Can you show us your code? Please send it formatted

  constructor () public {
    _rOwned[_msgSender()] = _rTotal;
    
    IUniswapV2Router02 _uniswapV2Router = IUniswapV2Router02(0x05fF2B0DB69458A0750badebc4f9e13aDd608C7F);
     // 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);
}

As I told you, your router address is wrong. Are you deploying on testnet or mainnet?

1 Like

Deploying testnet now

So you must use this: 0xD99D1c33F9fC3444f8101754aBC46c52416550D1

1 Like

thank you my friend i trying

YEP! work fine. thank you. So Can you share me for mainnet adress

Thank you!
How can I contact you?

You can PM me here or on telegram @FreezyEXchange

1 Like