Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
document.getElementById('W01').addEventListener('click', () => {
const wallet = IconWallet.create(); //Wallet Creation
const address = wallet.getAddress(); // Get Address
const privateKey = wallet.getPrivateKey(); // Get Private Key
document.getElementById('W01-1').innerHTML = `Address: ${address}`;
document.getElementById('W01-2').innerHTML = `Private Key: ${privateKey}`;
});