(_tokenSymbol)
| 2650 | } |
| 2651 | |
| 2652 | async function initialize(_tokenSymbol) { |
| 2653 | welcome(); |
| 2654 | await setup(); |
| 2655 | if (typeof _tokenSymbol === 'undefined') { |
| 2656 | tokenSymbol = await selectToken(); |
| 2657 | } else { |
| 2658 | tokenSymbol = _tokenSymbol; |
| 2659 | } |
| 2660 | let securityTokenAddress = await securityTokenRegistry.methods.getSecurityTokenAddress(tokenSymbol).call(); |
| 2661 | if (securityTokenAddress == '0x0000000000000000000000000000000000000000') { |
| 2662 | console.log(chalk.red(`Selected Security Token ${tokenSymbol} does not exist.`)); |
| 2663 | process.exit(0); |
| 2664 | } |
| 2665 | let securityTokenABI = abis.securityToken(); |
| 2666 | securityToken = new web3.eth.Contract(securityTokenABI, securityTokenAddress); |
| 2667 | securityToken.setProvider(web3.currentProvider); |
| 2668 | } |
| 2669 | |
| 2670 | function welcome() { |
| 2671 | common.logAsciiBull(); |
no test coverage detected