Update content/_code-samples/claim-payment-channel/js/claimPayChannel.ts

Co-authored-by: Jackson Mills <aim4math@gmail.com>
This commit is contained in:
pdp2121
2023-01-31 11:59:01 -05:00
committed by GitHub
parent c4870d387d
commit 707c4742b1

View File

@@ -19,8 +19,8 @@ async function claimPayChannel(): Promise<void> {
const { wallet: wallet2 } = await client.fundWallet()
console.log('Balances of wallets before Payment Channel is claimed:')
console.log(await client.getXrpBalance(wallet1.classicAddress))
console.log(await client.getXrpBalance(wallet2.classicAddress))
console.log(`Balance of ${wallet1.address} is ${await client.getXrpBalance(wallet1.address)} XRP)
console.log(`Balance of ${wallet2.address} is ${await client.getXrpBalance(wallet2.address)} XRP)
// create a Payment Channel and submit and wait for tx to be validated
const paymentChannelCreate: PaymentChannelCreate = {