From c1c90e5779be807c30202d7637f5a4352464b335 Mon Sep 17 00:00:00 2001 From: Marton Moro Date: Mon, 18 Nov 2024 20:43:16 +0100 Subject: [PATCH] chore(providers): rename --- packages/providers/src/validation.ts | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/packages/providers/src/validation.ts b/packages/providers/src/validation.ts index d8a0c4b..d7cc134 100644 --- a/packages/providers/src/validation.ts +++ b/packages/providers/src/validation.ts @@ -60,10 +60,11 @@ export const SignFieldsRequestParamsSchema = RequestWithContext.extend({ method: z.literal("mina_signFields"), params: z.array(z.array(FieldSchema)), }).strict(); -export const signFieldsWithPassphraseParamsSchema = RequestWithContext.extend({ - method: z.literal("mina_signFieldsWithPassphrase"), - params: z.array(FieldsAndPassphraseSchema), -}); +export const signFieldsWithPassphraseRequestParamsSchema = + RequestWithContext.extend({ + method: z.literal("mina_signFieldsWithPassphrase"), + params: z.array(FieldsAndPassphraseSchema), + }); export const SignTransactionRequestParamsSchema = RequestWithContext.extend({ method: z.literal("mina_signTransaction"), params: z.array(z.union([TransactionPayloadSchema, ZkAppCommandPayload])), @@ -241,7 +242,7 @@ export const ProviderRequestParamsUnion = z.discriminatedUnion("method", [ GetStateRequestParamsSchema, StorePrivateCredentialRequestParamsSchema, PresentationRequestParamsSchema, - signFieldsWithPassphraseParamsSchema, + signFieldsWithPassphraseRequestParamsSchema, ]); export type RpcReturnTypesUnionType = z.infer; export type ResultType = {