MCPcopy Create free account
hub / github.com/PolymathNetwork/polymath-core / selectST

Function selectST

CLI/commands/permission_manager.js:48–61  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

46}
47
48async function selectST() {
49 if (!tokenSymbol)
50 tokenSymbol = readlineSync.question('Enter the token symbol: ');
51
52 let result = await securityTokenRegistry.methods.getSecurityTokenAddress(tokenSymbol).call();
53 if (result == "0x0000000000000000000000000000000000000000") {
54 tokenSymbol = undefined;
55 console.log(chalk.red(`Token symbol provided is not a registered Security Token.`));
56 await selectST();
57 } else {
58 let securityTokenABI = abis.securityToken();
59 securityToken = new web3.eth.Contract(securityTokenABI,result);
60 }
61}
62
63async function addPermissionModule() {
64 let generalPermissionManagerAddress;

Callers 1

executeAppFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected