DApp ETH存款 源码
DApp-ETH存款 依赖 节点版本12.18.0 npm install -g ganache-cli npm install --g松露@ 5.1.39 Metamask镀Chrome扩展 在终端中编译的步骤 1. npm install 2. truffle compile 3. ganache-cli 4. truffle migrate / truffle migrate --reset 步骤到控制台 1. truffle console 2. tokenFarm = await TokenFarm.deployed() 3. eth = await Token.deployed() 4. accounts = await web3.eth.getAccounts.accounts[1] 5. balance = await eth.balanceOf(accounts[1