Skip to content

marcinm2h/erc20-token2021

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

erc20-token2021

  • start dev blockchain
yarn ganache
  • migrate to rinkeby
yarn workspace contract migrate --network rinkeby
  • start dev blockhain && exec script
yarn workspace contract ganache
yarn workspace contract migrate:dev && yarn workspace contract start:dev
  • network console
yarn workspace contract truffle console --network rinkeby
truffle(rinkeby)> await web3.eth.getAccounts();
truffle(rinkeby)> token2021.balanceOf(accounts[0])
BN { negative: 0, words: [ 0, <1 empty item> ], length: 1, red: null }
truffle(rinkeby)> token2021.claim()
truffle(rinkeby)> token2021.balanceOf(accounts[0])
BN { negative: 0, words: [ 20, <1 empty item> ], length: 1, red: null }