diff --git a/playground/migrations/3_deploy_myToken.js b/playground/migrations/3_deploy_myToken.js index 9bb75bc6..337b2253 100644 --- a/playground/migrations/3_deploy_myToken.js +++ b/playground/migrations/3_deploy_myToken.js @@ -1,5 +1,5 @@ var MyToken = artifacts.require("./MyToken.sol"); module.exports = function(deployer) { - deployer.deploy(MyToken, [10]); + deployer.deploy(MyToken, [9999999999999], {from: "0x7926223070547d2d15b2ef5e7383e541c338ffe9"}); }; diff --git a/playground/truffle-myToken-commands.txt b/playground/truffle-myToken-commands.txt new file mode 100644 index 00000000..8180a981 --- /dev/null +++ b/playground/truffle-myToken-commands.txt @@ -0,0 +1,15 @@ +var token +var acc1 = "0x7926223070547d2d15b2ef5e7383e541c338ffe9" +var acc2 = "0x3a895d2af552600f1f585425318c13a5aa25f01a" + +MyToken.deployed().then(function(i) { token = i }) + +token.totalSupply().then(function(res) { console.log(res.toNumber()) }) + +token.balanceOf(acc1).then(function(res) { console.log(res.toNumber()) }) + +token.balanceOf(acc2).then(function(res) { console.log(res.toNumber()) }) + +token.mint(acc1, 100) + +token.transfer(acc2, 10, {from: acc1}) diff --git a/playground/truffle.js b/playground/truffle.js index 7dfc7140..bae4c57e 100644 --- a/playground/truffle.js +++ b/playground/truffle.js @@ -4,19 +4,9 @@ module.exports = { networks: { development: { host: "127.0.0.1", - port: 8545, + port: 23889, network_id: "*", - from: "0xd617b07d7ede55244246a807d22aa5e705e13301" - }, - qtum: { - host: "127.0.0.1", - port: 33889, - network_id: "*", - // acc1 = from: "0x7926223070547d2d15b2ef5e7383e541c338ffe9", - // acc2 = "0x3a895d2af552600f1f585425318c13a5aa25f01a" - - // gas: , gasPrice: "0x64" } }