0

i am trying to deploying a contract to bsc testnet but it getting this error :

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

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

here is my code link: https://github.com/coderbang1/smartcontract/blob/main/code

1
  • I am also facing the same error. Did you find a solution?
    – Strikers
    Jul 6 at 13:37
1

Your constructor function is using the mainnet PancakeSwap router(on line 621), and because the router address on testnet is different, it fails to create the pair. For testnet, try using the testnet router address, which is 0xD99D1c33F9fC3444f8101754aBC46c52416550D1.

2
  • same problem... Jun 27 at 18:29
  • I got the same error, this change did not help.
    – Strikers
    Jul 6 at 13:37

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.