mirror of
https://github.com/Xahau/xahau.js.git
synced 2025-11-19 11:45:49 +00:00
fix: set ledger_index to validated (#1675)
* fix: adds ledger_index: validated
This commit is contained in:
committed by
Mayukha Vadari
parent
02fd0ce323
commit
c3e68cc83f
@@ -13,7 +13,7 @@ import { generateFundedWallet, testTransaction } from '../utils'
|
||||
// how long before each test case times out
|
||||
const TIMEOUT = 20000
|
||||
|
||||
describe('PaymentChannelFund', function () {
|
||||
describe('PaymentChannelClaim', function () {
|
||||
this.timeout(TIMEOUT)
|
||||
|
||||
before(suiteClientSetup)
|
||||
|
||||
@@ -35,7 +35,6 @@ describe('PaymentChannelFund', function () {
|
||||
this.wallet,
|
||||
paymentChannelCreate,
|
||||
)
|
||||
|
||||
await testTransaction(this.client, paymentChannelCreate, this.wallet)
|
||||
|
||||
const paymentChannelFund: PaymentChannelFund = {
|
||||
|
||||
@@ -83,6 +83,9 @@ export async function testTransaction(
|
||||
transaction: Transaction,
|
||||
wallet: Wallet,
|
||||
): Promise<void> {
|
||||
// Accept any un-validated changes.
|
||||
await ledgerAccept(client)
|
||||
|
||||
// sign/submit the transaction
|
||||
const response = await client.submitTransaction(wallet, transaction)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user