Skip to content

Commit a2692fc

Browse files
committed
CLI - Added 'show exempted addresses'
1 parent c0700ea commit a2692fc

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

CLI/commands/transfer_manager.js

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1556,11 +1556,16 @@ async function volumeRestrictionTM() {
15561556

15571557
let addressesAndRestrictions = await currentTransferManager.methods.getRestrictedData().call();
15581558
console.log(`- Individual restrictions: ${addressesAndRestrictions.allAddresses.length}`);
1559+
let exemptedAddresses = await currentTransferManager.methods.getExemptAddress().call();
1560+
console.log(`- Exempted addresses: ${exemptedAddresses.length}`);
15591561

15601562
let options = [];
1561-
if (addressesAndRestrictions[0].length > 0) {
1563+
if (addressesAndRestrictions.allAddresses.length > 0) {
15621564
options.push('Show restrictions');
15631565
}
1566+
if (exemptedAddresses.length > 0) {
1567+
options.push('Show exempted addresses');
1568+
}
15641569
options.push(
15651570
'Change exempt wallet',
15661571
'Change default restrictions',
@@ -1583,6 +1588,9 @@ async function volumeRestrictionTM() {
15831588
addressesAndRestrictions.endTime,
15841589
);
15851590
break;
1591+
case 'Show exempted addresses':
1592+
showExemptedAddresses(exemptedAddresses);
1593+
break;
15861594
case 'Change exempt wallet':
15871595
await changeExemptWallet();
15881596
break;
@@ -1620,6 +1628,11 @@ function showRestrictionTable(investorArray, amountArray, typeArray, rollingPeri
16201628
console.log(table(dataTable));
16211629
}
16221630

1631+
function showExemptedAddresses(addresses) {
1632+
console.log("*********** Exepmpted addresses ***********");
1633+
addresses.map(i => console.log(i));
1634+
}
1635+
16231636
async function changeExemptWallet() {
16241637
let options = [
16251638
'Add exempt wallet',

0 commit comments

Comments
 (0)