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

Function unarchiveModule

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

Source from the content-addressed store, hash-verified

550}
551
552async function unarchiveModule(modules) {
553 let options = modules.map(m => `${m.name} (${m.address})`);
554 let index = readlineSync.keyInSelect(options, 'Which module whould you like to unarchive?');
555 if (index != -1) {
556 console.log("\nSelected: ", options[index]);
557 let unarchiveModuleAction = securityToken.methods.unarchiveModule(modules[index].address);
558 await common.sendTransaction(unarchiveModuleAction, { factor: 2 });
559 console.log(chalk.green(`${modules[index].name} has been unarchived successfully!`));
560 }
561}
562
563async function removeModule(modules) {
564 let options = modules.map(m => `${m.name} (${m.address})`);

Callers 1

listModuleOptionsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected