To reproduce the bug:
Open ganache and use this mnemonic:
Actually, you may use any seed in Ganache but just to have same variables across the diferent networks we'll use (local and ropsten).
if you hit with some error:
Delete the folder dapp/build
and the "linked" folder contracts in ./src
and migrate the smartcontracts again:
to migrate and deploy to ganache and
to migrate and deploy to ropsten
Create a linked folder of ./dapp/build/contracts into src
(In linux and mac)
return to test-truffleContract
and start react server again
If everything goes ok using ganache you'll see in the broswer info about the smartcontract and the phrase: Done! It is working!
The bug is in the next phase. In the file app.js
comment the line 18 and uncomment line 19. Save the file and you'll see that this time infura doesn't work as a provider.
How can I fix this?
Thank you for your help!