I am trying to deploy a new token contract to BSC testnet and hitting this error message.

creation of NewToken errored: Internal JSON-RPC error. { "code": -32000, "message": "execution reverted"

I have seen from some previous posts some answers that calling the 'approve' function from within the contract doesn't work. Can someone please explain the correct way to do this?

I am a newbie, self-learning, so yes, it is probably a simple fix. I've have been racking my brain trying to find the fix. A step-by-step would be great. This token is a fork from Safemoon. I have only changed a few paramters suh as the name and number of tokens to be minted but still hitting this error.

Please let me know what information is needed to help you answer my newbie question.

  • Do you have the failed transaction hash? Can you show the contract source code?
    – Ismael
    Sep 14 at 18:31

Your Answer

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

Browse other questions tagged or ask your own question.