Skip to content

Commit

Permalink
chore(backend): WIP fix build
Browse files Browse the repository at this point in the history
tests using createOutgoingPaymentWithReceiver are still failing with this change
  • Loading branch information
BlairCurrey committed Oct 23, 2023
1 parent 2086ab2 commit 31063cc
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions packages/backend/src/tests/outgoingPayment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import { CreateIncomingPaymentOptions } from '../open_payments/payment/incoming/
import { IncomingPayment } from '../open_payments/payment/incoming/model'
import { createIncomingPayment } from './incomingPayment'
import assert from 'assert'
import { IlpAddress } from 'ilp-packet'

type CreateTestQuoteAndOutgoingPaymentOptions = Omit<
CreateOutgoingPaymentOptions & CreateTestQuoteOptions,
Expand Down Expand Up @@ -116,12 +117,11 @@ export async function createOutgoingPaymentWithReceiver(
walletAddressId: args.receivingWalletAddress.id
})

const connectionService = await deps.use('connectionService')
const receiver = new Receiver(
incomingPayment.toOpenPaymentsType(
args.receivingWalletAddress,
connectionService.get(incomingPayment)!
)
incomingPayment.toOpenPaymentsTypeWithMethods(args.receivingWalletAddress, {
ilpAddress: 'test.ilp' as IlpAddress,
sharedSecret: Buffer.from('')
})
)

const outgoingPayment = await createOutgoingPayment(deps, {
Expand Down

0 comments on commit 31063cc

Please sign in to comment.