trufflesuite / trufflesuite.github.io

Staging Repo of Build Artifacts for Truffle Suite. Find the source at https://github.com/trufflesuite/trufflesuite.com
https://www.trufflesuite.com
34 stars 161 forks source link

Truffle & OpenZeppelin tutorial issues #190

Closed medied closed 6 years ago

medied commented 6 years ago

I'm running into issues interacting with TutorialToken from the OpenZeppelin tutorial (section 4 to be precise). Behavior I'm getting and other info:

screen shot 2017-09-13 at 5 27 05 pm

Some questions and thoughts:

Our basic dapp shows the TutorialToken balance of the selected account in MetaMask.

Try transferring some tokens to a different account, here we moved 2000 TT to the second account.

Any pointers would be helpful as I'm trying to learn as much as possible. Thanks in advance!

OnlyOneJMJQ commented 6 years ago

Here are some things to try, there could be a few different causes of this.

If all the above fails, let's see if it works without MetaMask:

medied commented 6 years ago

Thanks for reaching out @DiscRiskandBisque, here's what I found:

In summary it works when I interact with the app in incognito, and Metamask in non-incognito. Curious if you have any other thoughts or reactions. I think this works for me for the time being, feel free to close this issue. Thanks again!

adamclark64 commented 6 years ago

Thank you @medied. Spun my wheels for a bit until my first attempt at an incognito tab worked first try.

bmmpxf commented 6 years ago

Hi all. We've done a bunch of updates to this tutorial with this in mind. Please give it another try, as these issues should be resolved. You should not need an incognito window to perform the tutorial. But if you're still having issues, please let us know!

radicleart commented 6 years ago

I've just run through this tutorial and got stuck at the same place.

I noticed that Ganache had started on port 7545 (looking in it's logs) and that line 16 of app.js referenced port 9545.

I edited app.js and cleared everything down including restarting ganache then re-ran and now see the 1200 balance.

I'm now making transactions which show up in both ganache and meta mask. The balance on localhost:3000 updates but not the account balances in ganache/meta mask which show 0 value transfers. Will carry on digging.

BTW Thanks! Truffle / Ganache and the tutorials are fantastic tools!

bmmpxf commented 6 years ago

Thanks @mjoecohen . Please use the https://github.com/trufflesuite/trufflesuite.com/issues repo for all tutorial issues from here on out. (We've migrated away from this repo.)