From 71df54dc90174ff740a2728478a8e5496dab7ab0 Mon Sep 17 00:00:00 2001 From: Sandipan Dey Date: Wed, 2 Aug 2023 23:04:02 +0530 Subject: [PATCH] chore: also return handle for intraledger payment destination --- src/parsing/index.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/parsing/index.ts b/src/parsing/index.ts index dc4e090..616dbb7 100644 --- a/src/parsing/index.ts +++ b/src/parsing/index.ts @@ -173,6 +173,7 @@ export type IntraledgerPaymentDestination = paymentType: typeof PaymentType.Intraledger valid: false invalidReason: InvalidIntraledgerReason + handle: string } export type ParsedPaymentDestination = @@ -318,6 +319,7 @@ const getIntraLedgerPayResponse = ({ return { valid: false, paymentType, + handle, invalidReason: InvalidIntraledgerReason.WrongDomain, } }