title: Problem when deploying contract using Remix on Testnet
body: <p>I tried to deploy a contract to Testnet with Remix (all Testnet return the same message) and I got this error:</p>
  <pre><code>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. { &quot;code&quot;: -32000, &quot;message&quot;: &quot;gas required exceeds allowance (30000000) or always failing transaction&quot; }
  </code></pre>
  <p>But when I tried to deploy it in BSC Mainnet everything works fine with no errors. Any suggestions?</p>
  <p>this is the relevant code</p>
  <pre><code>contract artemis is Context, IERC20, Ownable {
      // ...
  
      constructor() public {
          _rOwned[_msgSender()] = _rTotal;
  
          IUniswapV2Router02 _uniswapV2Router =
              IUniswapV2Router02(0x05fF2B0DB69458A0750badebc4f9e13aDd608C7F);
          // Create a Pancakeswap 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);
      }
  
      // ...
  }
  </code></pre>
  <hr />
  <p>I upload the whole code here because its to  long.</p>
  <p><a href="http://depositfiles.com/files/y9aomy21z" rel="nofollow noreferrer">code</a></p>