2017-07-02 02:04:29 +00:00
|
|
|
var Web3 = require('web3');
|
|
|
|
|
|
|
|
web3 = new Web3();
|
|
|
|
|
2017-12-05 23:14:46 +00:00
|
|
|
web3.setProvider(new web3.providers.HttpProvider('http://localhost:8545'));
|
2017-07-02 02:04:29 +00:00
|
|
|
|
|
|
|
EmbarkJS = require('./js/embark.js');
|
|
|
|
|
|
|
|
MyToken = require('./test_app/dist/js/mytoken.js');
|
|
|
|
|
|
|
|
console.log(MyToken.address);
|
|
|
|
|
|
|
|
MyToken.balanceOf(web3.eth.accounts[0]).then((x) => console.log(x.toNumber()));
|