$ npm i -g truffle
$ git clone https://github.com/ngo275/ERC20-sample.git
$ cd ERC20-sample
$ truffle compile
$ truffle develop
$ > migrate
$ > let token = await ERC20Basic.deployed()
$ > let accounts = await web3.eth.getAccounts()
$ > token.balanceOf(accounts[1])
$ > token.transfer(accounts[1], 1000)
$ > token.balanceOf(accounts[1])
ngo275 / erc20-sample Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License