Slide 33
Slide 33 text
SGDT.balanceOf(web3.eth.accounts[1]).toNumber(); // 0
SGDT.issue(1000, {
from: web3.eth.accounts[1],
gas: 1000000
});
SGDT.balanceOf(web3.eth.accounts[1]).toNumber(); // 1000 ($10.00)
SGDT.balanceOf(web3.eth.accounts[2]).toNumber(); // 0
SGDT.transfer(web3.eth.accounts[2], 499, {
from: web3.eth.accounts[1],
gas: 1000000,
});
SGDT.balanceOf(web3.eth.accounts[2]).toNumber(); // 499 ($4.99)
SGDT.balanceOf(web3.eth.accounts[1]).toNumber(); // 501 ($5.01)
Print some cash and transact