From df09affad2f102472dca47993f64923f5bc635b1 Mon Sep 17 00:00:00 2001 From: mat-if <97762857+mat-if@users.noreply.github.com> Date: Wed, 14 Aug 2024 15:32:57 -0700 Subject: [PATCH] fix `wallet:which --displayName` output (#5272) Previously, the RPC wasn't receiving this parameter properly due to it being left out of the yup schema. Add it to the schema so that the flag is properly passed through. --- ironfish/src/rpc/routes/wallet/getAccounts.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/ironfish/src/rpc/routes/wallet/getAccounts.ts b/ironfish/src/rpc/routes/wallet/getAccounts.ts index 608beb46f9..b0d063ac12 100644 --- a/ironfish/src/rpc/routes/wallet/getAccounts.ts +++ b/ironfish/src/rpc/routes/wallet/getAccounts.ts @@ -14,6 +14,7 @@ export type GetAccountsResponse = { accounts: string[] } export const GetAccountsRequestSchema: yup.ObjectSchema = yup .object({ default: yup.boolean().optional(), + displayName: yup.boolean().optional(), }) .notRequired() .default({})