I am attempting to deploy a BEP20 contract on BSC testnet via Remix. I am using compiler v6.12 and am successfully compiling my Solidity. However, when I deploy the contract, I am receiving the following error:

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

My gas limit is set to 3000000 and this is my log output:`

 status false Transaction mined but execution failed
 transaction hash   0x447...e5e5c
 from   0x4698a3...1e0f94F
 to TestContract.(constructor)
 gas    3000000 gas
 transaction cost   653237 gas
 hash   0x44745d2c2e321...9e5e5c
 input  0x60c...c0033
 decoded input  {}
 decoded output  -
 logs   []
 value  0 wei

Does anyone have an idea as to what I am doing wrong?

  • This took me few hours pulling my hairs, thanks for your comment.
    – Anon
    Jul 24 at 8:12


The issue was that I used the mainnet PancakeSwapV2 router address, and not the testnet one. For anyone else encountering this issue, the mainnet router is:


and the testnet one is:


Hopefully this helps someone else!

  • What do you mean with router address? Where have you changed that? I'm getting this same error sending an erc20 transaction to metamask which is connected to ropsten :S
    – David
    Nov 15 at 6:07

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.