Skip to content

Commit 6634383

Browse files
committed
Minor fixes
1 parent ad1ad40 commit 6634383

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

CLI/commands/wallet_manager.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ async function getSchedules(beneficiary, templateNames) {
313313
duration: scheduleData[1],
314314
frequency: scheduleData[2],
315315
startTime: scheduleData[3],
316-
claimedTokens: scheduleData[4],
316+
claimedTokens: web3.utils.fromWei(scheduleData[4]),
317317
state: scheduleData[5]
318318
};
319319
}));
@@ -452,18 +452,18 @@ async function pullAvailableTokens() {
452452
}
453453

454454
async function exploreAccount(account) {
455-
console.log('\n', chalk.blue('Wallet - Account explorer', '\n'));
455+
console.log('\n', chalk.blue(`Wallet - Account explorer for ${account}`, '\n'));
456456

457-
const currentBalance = await securityToken.methods.balanceOf(Issuer.address).call();
458-
console.log(`Current balance: ${web3.utils.fromWei(currentBalance)} ${tokenSymbol}`);
457+
const currentBalance = await securityToken.methods.balanceOf(account).call();
458+
console.log(`Current balance: ${web3.utils.fromWei(currentBalance)} ${tokenSymbol}`);
459459
const templateNames = await currentWalletModule.methods.getTemplateNames(account).call();
460460
let schedules = [];
461461
if (templateNames.length > 0) {
462462
schedules = await getSchedules(account, templateNames);
463-
console.log(`Current vesting schedules for ${account}: ${schedules.length}`);
463+
console.log(`Current vesting schedules: ${schedules.length}`);
464464
schedules.map(t => console.log('-', formatScheduleAsString(t), `\n`));
465465
} else {
466-
console.log(`Current vesting schedules for ${account}: None`);
466+
console.log(`Current vesting schedules: None`);
467467
}
468468
}
469469

0 commit comments

Comments
 (0)