Skip to content

Latest commit

 

History

History
57 lines (46 loc) · 2.25 KB

README.md

File metadata and controls

57 lines (46 loc) · 2.25 KB

Cryptozombies

Development tools:

If you would like to use Infura to not sync a local node use a HD wallet http://truffleframework.com/tutorials/using-infura-custom-provider

  • Install HDwallet to use infura nodes: npm i truffle-hdwallet-provider
  • Note windows users if you get a MSBUILD error you have to install: npm install -g windows-build-tools

Debugging the contracts

Deploying the contract

  • Deploy to rinkeby: truffle migrate --network rinkebyinfura
  • Deploy to local ganache blockchain truffle migrate --network development

Testing frontend

  • launch web-server with command: http-server
  • Visit url with browser having metamask installed, unlocked and connected to it to Rinkeby network
  • In the console create your first zombie bt typing: createRandomZombie("SOME NAME")

Display zombies getZombiesByOwner(userAccount) .then(displayZombies);

Create zombie createRandomZombie("TEST NANE")

Find zombie id getZombiesByOwner(userAccount)

Transfer zombie transferZombie('0xf64e39c5911d22f0f87d35c0ab70fa105bab2ec3',4)