(from, totalSupply)
| 2729 | } |
| 2730 | |
| 2731 | async function logBalance(from, totalSupply) { |
| 2732 | let fromBalance = web3.utils.fromWei(await securityToken.methods.balanceOf(from).call()); |
| 2733 | let percentage = totalSupply != '0' ? ` - ${parseFloat(fromBalance) / parseFloat(totalSupply) * 100}% of total supply` : ''; |
| 2734 | console.log(chalk.yellow(`Balance of ${from}: ${fromBalance} ${tokenSymbol} ${percentage} `)); |
| 2735 | } |
| 2736 | |
| 2737 | module.exports = { |
| 2738 | executeApp: async function (_tokenSymbol) { |