RedSquirrelTech / hoscdev

Code for Hands on Smart Contract Development. We recommend https://quickbeam.xyz/ for a more interactive learning experience. (discount code: HOSCDEV100)
http://shop.oreilly.com/product/0636920216018.do
137 stars 51 forks source link

Your chapter 5 exercises are impossible to complete as written #31

Closed ghost closed 3 years ago

ghost commented 3 years ago

The folder structure in your github repository doesn't align with with the copy/paste noted in the book (i.e., chapter 9 does not contain the required UI code for 'Greeter'...

EDIT: spelling. I solved my problem so am less mad but still, the fact that I had to scramble around for this UI code was VERY frustrating...

ghost commented 3 years ago

UPDATE: after much testing I found you can copy the /client directory from the chapter-5 folder -- NOT the chapter 10-11 as suggested in the other issue. As a side note, you may run into issues with deploying the contract that the book does not cover: check two things: 1) the truffle-config.js deployment port number matches that shown under RPC in the ganache UI (mine was not the same shown in the book) 2) in ./client/src/utils/getWeb3.js -- make sure the http address here matches the RPC in ganache UI