I have made a token which has no errors on solidity, but every time I try to launch it on the BSC testnet I get this error. Any thoughts on how to fix this?
Internal JSON-RPC error. { “code”: -32000, “message”: “execution reverted” }
Please before making a new topic, search on the forum.
[image]
I read many people asking for this problem so now I try to fix their issue once and for all.
99% of the times this error is caused by the wrong router address of Pancakeswap.
If you are on testnet use this: 0xD99D1c33F9fC3444f8101754aBC46c52416550D1
If you are on mainnet use this: 0x10ED43C718714eb63d5aA57B78B54704E256024E
If after changing it you still get the error, clean cookies and cache.
Are you still getting this error? Well open a topic and share your code and your problem.
…
Environment
Remix
:memo:Details
Code compilations completes successfully, but when i try to deploy my contract, i get this error:
Internal JSON-RPC error. { “code”: -32000, “message”: “execution reverted” }
Metamask is set to BSC-TestNet correctly with 1.2 BNB balance, and i hard-coded PCS-Testnet router address in the code.
Code to reproduce
https://pastebin.com/raw/8BXg3Zip
1 Like
i am trying to deploy the code on matic i get the same errors …plese tell me how to solve it