Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
async getWalletBalance() {
const balanceA = await this.iconService.getBalance(MockData.WALLET_ADDRESS_1).execute();
const balanceB = await this.iconService.getBalance(MockData.WALLET_ADDRESS_2).execute();
document.getElementById('I02-1').innerHTML = `<b>${IconAmount.of(balanceA, IconAmount.Unit.LOOP).convertUnit(IconAmount.Unit.ICX)}`;
document.getElementById('I02-2').innerHTML = `<b>${IconAmount.of(balanceB, IconAmount.Unit.LOOP).convertUnit(IconAmount.Unit.ICX)}`;
}
</b></b>