If you're at a hackathon, and wanna develop a DApp, we've got the basics covered here!
We're currently in the midst of NBC'19, and there are a few questions that keep coming up, and a few resources that I have been referring you to quite often. In the spirit of scaling my reach up, and also so that everyone gets the same information … the following compiles all of thoses things into one post! 🎉
What are you currently trying to do? Just jump in to the part which is relevant to you!
The items below are not intended to be comprehensive or thorough, but rather the absolute mininum necessary required to pull off something during a hackathon.
Why does MetaMask not connect to Truffle?
Make sure that you have changed your network in MetaMask to the localhost network,
and that the port number matches too. Usually this will be localhost:8545
.
Why doesn't Truffle deploy connect to Ganache?
Open truffle-config.js
, and ensure that the development
object is uncommented.
What's the difference between truffle develop and truffle console?
truffle develop
runs its own local simulated blockchain, and thus whatever you have on ganache is ignored.truffle console --network develop
does not run its own blockchain, and instead attempts to connect to whatever has been defined in truffle-config.js
, which in this case should be your instance of Ganache that is running.Is there anything else that you think should be here? Let me know and I'll update the list!
… Happy hacking!