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

Function removeModule

CLI/commands/token_manager.js:563–572  ·  view source on GitHub ↗
(modules)

Source from the content-addressed store, hash-verified

561}
562
563async function removeModule(modules) {
564 let options = modules.map(m => `${m.name} (${m.address})`);
565 let index = readlineSync.keyInSelect(options, 'Which module whould you like to remove?');
566 if (index != -1) {
567 console.log("\nSelected: ", options[index]);
568 let removeModuleAction = securityToken.methods.removeModule(modules[index].address);
569 await common.sendTransaction(removeModuleAction, { factor: 2 });
570 console.log(chalk.green(`${modules[index].name} has been removed successfully!`));
571 }
572}
573
574async function changeBudget() {
575 let options = modules.map(m => `${m.name} (${m.address})`);

Callers 1

listModuleOptionsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected