Skip to content
This repository has been archived by the owner on Mar 11, 2024. It is now read-only.

stored default value is 0 not 5 as expected #33

Closed
varvarasd opened this issue Dec 12, 2017 · 7 comments
Closed

stored default value is 0 not 5 as expected #33

varvarasd opened this issue Dec 12, 2017 · 7 comments
Labels

Comments

@varvarasd
Copy link

Please note I've made no modifications.
I've only followed the first 5 points in your Installation guide
trufflebox

@Squall949
Copy link

Squall949 commented Dec 22, 2017

In my case, I found out it was caused by the chrome extension of MetaMask, which resulted in getting wrong network_id.

After I disabled the extension, the page works as expected.

Updated:
We can set up Metamask with Truffle Develop (truffle 4 above) for local test.
http://truffleframework.com/docs/advanced/truffle-with-metamask

@ToJen
Copy link

ToJen commented Dec 28, 2017

Note that the app tries to connect to MetaMask and if it does not find a connection, it will create a connection to 127.0.0.1:9545 (line 24 of src/utils/getWeb3.js). So your truffle.js should look like this:

module.exports = {
  // See <http://truffleframework.com/docs/advanced/configuration>
  // to customize your Truffle configuration!
  networks: {
  	development: {
  		host: "localhost",
  		port: 9545,
  		network_id: "*",
  		gas: 4700000
  	}
  }
};

Then when you run TestRPC it should be run as testrpc -p 9545.

Hope that helps!

@matthhong
Copy link

matthhong commented May 31, 2018

Also, you should have gotten a 12-word mnemonic after you run truffle develop.

First, set up your MetaMask network as in the link @Squall949 posted, then click Logout.

Then, log back in with that 12-word mnemonic, and use whatever password you want. Now, you should be able to confirm the transaction with that test account.

This way you won't have to disable MetaMask. It'll work and you'll see 5.

@stale
Copy link

stale bot commented Dec 21, 2018

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 stale bot added the wontfix label Dec 21, 2018
@stale
Copy link

stale bot commented Dec 28, 2018

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.

@stale stale bot closed this as completed Dec 28, 2018
@no-name-max
Copy link

Tried everything above, uninstalled and reinstalled everything and 0 still doesn't change to 5

@picozzimichele
Copy link

Maybe this has already been closed however:

  • Change the network in Metamask and connect to the local one (I am assuming local 8545), this worked for me.
  • To change network just select it from the dropdown in Metamask

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

6 participants