From 2787c1c1b73285684d933c08a099ed2c79c3b478 Mon Sep 17 00:00:00 2001 From: Sandipan Dey Date: Wed, 2 Aug 2023 23:05:33 +0530 Subject: [PATCH] chore: also return handle for intraledger payment destination (#293) --- 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, } }