fix: set ledger_index to validated (#1675)

* fix: adds ledger_index: validated
This commit is contained in:
Nathan Nichols
2021-09-28 16:42:40 -07:00
committed by Mayukha Vadari
parent 02fd0ce323
commit c3e68cc83f
6 changed files with 7 additions and 3 deletions

View File

@@ -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)

View File

@@ -35,7 +35,6 @@ describe('PaymentChannelFund', function () {
this.wallet,
paymentChannelCreate,
)
await testTransaction(this.client, paymentChannelCreate, this.wallet)
const paymentChannelFund: PaymentChannelFund = {

View File

@@ -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)