MoonContract hit a require or revert statement somewhere in its constructor

Hello, I’m trying to implement this contract.
But I am having this error as a return:

Error: *** Deployment Failed ***

“MoonContract” hit a require or revert statement somewhere in its constructor. Try:

  • Verifying that your constructor params satisfy all require conditions.
  • Adding reason strings to your require statements.

Contract:

@abcoathup

1 Like

Hi @weslley,

Sorry I don’t know anything about this contract.

My guess would be the hardcoded address for the IUniswapV2Router02. Depending what network you are deploying to, then you would need this deployed too, and then pass in the address in your constructor.

Hello, I also ran into the same issue deploying to Ropsten testnet. I have already change the UniswapV2Router contract address to the correct address here https://ropsten.etherscan.io/address/0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D but still run into this issue.

Were you able to fix it?