Closed Bijan-Massoumi closed 5 years ago
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
This issue has been closed, but can be re-opened if further comments indicate that the problem persists. Feel free to tag maintainers if no there is no reply to further comments.
(Using Metamask with Ganache for development)
When updating the version of React and react-dom from 15.4.2 to 16.4.1 , it creates issues with transactions that do not happen when I keep the environment as I cloned from the repo. The issue is gas limit defaults to 0 and when manually adjusted to a reasonable gas limit it generates a rpc error as follows:
inpage.js:1 MetaMask - RPC Error: Error: Error: [ethjs-rpc] rpc error with payload {"id":1762257545694,"jsonrpc":"2.0","params":["0xf8b415850af16b16008301e24094eb09f1371315c54bf0812e5ad3081636e30d26f388016345785d8a0000b84452da61bb00000000000000000000000000000000000000000000000000000000000003330000000000000000000000000000000000000000000000000000000000000001822d45a03a4ad3df24eebbcb262ed18797ca6d5d0b8513767b2bdc0bf057a25a6419b616a04d4b8572d0a2e238a464a377832b1d5ae9a55e7b818d61925f4ec222f45a3ce1"],"method":"eth_sendRawTransaction"} Error: VM Exception while processing transaction: revert
Even more confusing is that when I switch accounts on metamask, the gas limit will sometimes be set correctly and the transaction will work normally, but this only occurs usually after a migration.
Any tips for how to properly migrate this truffle box to the latest version of react and have it work?