2

I am getting this error while trying to deploy contract on Mainnet via remix.ethereum.org

creation of XXXTokenCrowdsale errored:
Invalid JSON RPC response: {"id":22,"jsonrpc":"2.0","error":{"code":-32603}}

The same copy and pasted contract deploys without a problem on Ropsten or Rinkeby testnets using the same interface on remix.ethereum.org injected Web3.

  • I found a temporary workaround: 1. using remix, deploy your contract on testnet, e.g rinkeby 2. copy the bytecode from rinkeby etherscan 3. deploy using myetherwallet on mainnet by pasting the bytecode from step 2 . gas needs to be 3M (3000000) for my case. – Spark Jan 29 '18 at 16:18
1

I had a similar problem (different context but same error code).

As suggested at the bottom of this github issue, use truffle migrate --reset instead of just truffle migrate, that worked for me.

0

This should be fixed now, please let us know if it isn't.

protected by Ismael Feb 2 '18 at 2:16

Thank you for your interest in this question. Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).

Would you like to answer one of these unanswered questions instead?

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