- Deploy a test network like Rinkby or Ropsten. The ether on these networks are test ether you can get them for free from a faucet. I am using a Ropsten node run on infura.
- Get a wallet with a Mnemonic. I am using iancoleman’s wallet generator. This is not secure don’t do this for real ether. Save the mnemonic to a .secret file and .gitignore it.
- Get some free test ether from a faucet like this one.
- Edit your truffle-config.js file and uncomment the lines related to ropsten like lines approx 24,25,63-70.
- npm install truffle-hdwallet-provider (or a hdwallet provider)
- truffle test
- Then do some debugging so your unit tests work
- truffle test –network ropsten
- ooo tests have different results on different blockchain networks yikes
- the errors are not that bad and its a test network – lets deploy
- truffle compile –reset –compile-all (because why not)
- truffle migrate –network ropsten
- did it work? lets check the ropsten blockchain! Its alive! Here is the repo
- Tomorrow we interact with it via our web app and reactjs
Important you must call approve before transfer or your tokens will be inaccessible forever.
I also got some good haskell links from some folks at Recurse. And my favorite link of the day – Voldemort types! I discovered this while googling a rust bug.