Skip to content

Instantly share code, notes, and snippets.

@shingonu
Created August 27, 2018 03:43
Show Gist options
  • Select an option

  • Save shingonu/7cce022a8e46c6e2fa7e3454c72a3946 to your computer and use it in GitHub Desktop.

Select an option

Save shingonu/7cce022a8e46c6e2fa7e3454c72a3946 to your computer and use it in GitHub Desktop.
owner1 = web3.eth.accounts[0]
owner2 = web3.eth.accounts[1]
owner3 = web3.eth.accounts[2]
to = web3.eth.accounts[3]
HanwhaToken.new('HanwhaToken', 'HWT', 18, [1911772800, 1914451199]).then(i => token = i)
MultiSigWallet.new([owner1, owner2, owner3], 2).then(i => wallet = i)
token.mint(wallet.address, 100)
token.balanceOf(wallet.address)
// make data field
wallet.submitTransaction(token.address, 0, "0xa9059cbb000000000000000000000000b89fa349616deea6c93284f645d9e547635f00d1000000000000000000000000000000000000000000000000000000000000000a", {from: owner1})
token.balanceOf(wallet.address)
token.balanceOf(to)
wallet.confirmTransaction(0, {from: owner2})
token.balanceOf(wallet.address)
token.balanceOf(to)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment