Trying to setup my development environment to start a personal dapp project.
I am starting off the project with the React truffle box.
1) I start by running
truffle develop which launches a local dev blockchain on localhost port 9545, I connect metamask to it, then I move some ether from
accounts to my metamask address.
2) I then start the react app located in the
/client directory of the truffle project with
First time I did this everything worked perfectly, I would load the page, confirm the transaction to store the number "5" in the contract, and finally see the value "5" appear on the page. So everything good until this point.
CTRL+C everything (the truffle develop terminal tab and the react app terminal tab), restart everything once again by repeating the steps above, and surprisingly the dapp does not work anymore, I get this error when interacting with the contract thru metamask:
So why this inconsistency with the local dev environment? My hypothesis is be that some information about the old local dev blockchain is cached somewhere, so when I re-run everything metamask gets some info from the old chain? No idea...
Thanks for your time guys! Any feedback is super appreciated!