Apply suggestions from code review

Co-authored-by: Rome Reginelli <rome@ripple.com>
This commit is contained in:
Maria Shodunke
2025-08-26 09:51:20 +01:00
committed by akcodez
parent bd456557ae
commit 73b90de313
3 changed files with 6 additions and 4 deletions

View File

@@ -16,7 +16,8 @@ const fund_result = await client.fundWallet()
const test_wallet = fund_result.wallet
console.log(`Wallet: ${test_wallet.address}`)
console.log(`Balance: ${fund_result.balance}`)
console.log(`\nAccount Testnet Explorer URL:\nhttps://testnet.xrpl.org/accounts/${test_wallet.address}`)
console.log('Account Testnet Explorer URL:')
console.log(` https://testnet.xrpl.org/accounts/${test_wallet.address}`)
// @chunk-end
// To generate a wallet without funding it, uncomment the code below
@@ -48,7 +49,8 @@ client.request({
"streams": ["ledger"]
})
client.on("ledgerClosed", async (ledger) => {
console.log(`Ledger #${ledger.ledger_index} validated with ${ledger.txn_count} transactions!`)
console.log(`Ledger #${ledger.ledger_index} validated ` +
`with ${ledger.txn_count} transactions!`)
})
// @chunk-end