truffle-box / react-box

Truffle, Webpack and React boilerplate.
https://truffle-box.github.io/
MIT License
736 stars 251 forks source link

stored value was not set #8

Closed yuwiggin closed 5 years ago

yuwiggin commented 7 years ago

tried to run this example but failed. The stored value is: 0 (i.e. initial state) instead of 5 (a setting).

michaltakac commented 7 years ago

Make sure you're using ethereumjs-testrpc and not injecting web3 from another service - e.g. from Parity or MetaMask.

I had this problem too because I forgot to turn off Parity and MetaMask from Google Chrome extensions, after that the app created local web3 from testrpc and everything worked.

OnlyOneJMJQ commented 7 years ago

@yuwiggin If you are using MetaMask, make sure it's connected to localhost:8545 (you can change networks in the upper-right dropdown). Also, use the mnemonic given by the testRPC (it outputs when you first run the testrpc) to unlock MetaMask. You can do this by locking MetaMask and selecting "I forgot my password", from there paste the mnemonic into the textarea and choose any password.

stale[bot] commented 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.

stale[bot] commented 5 years ago

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.