(_tokenSymbol)
| 1013 | } |
| 1014 | |
| 1015 | async function initialize(_tokenSymbol) { |
| 1016 | welcome(); |
| 1017 | await setup(); |
| 1018 | if (typeof _tokenSymbol === 'undefined') { |
| 1019 | tokenSymbol = await selectToken(); |
| 1020 | } else { |
| 1021 | tokenSymbol = _tokenSymbol; |
| 1022 | } |
| 1023 | let securityTokenAddress = await securityTokenRegistry.methods.getSecurityTokenAddress(tokenSymbol).call(); |
| 1024 | if (securityTokenAddress == '0x0000000000000000000000000000000000000000') { |
| 1025 | console.log(chalk.red(`Selected Security Token ${tokenSymbol} does not exist.`)); |
| 1026 | process.exit(0); |
| 1027 | } |
| 1028 | let securityTokenABI = abis.securityToken(); |
| 1029 | securityToken = new web3.eth.Contract(securityTokenABI, securityTokenAddress); |
| 1030 | securityToken.setProvider(web3.currentProvider); |
| 1031 | } |
| 1032 | |
| 1033 | function welcome() { |
| 1034 | common.logAsciiBull(); |
no test coverage detected