From 6fd4d2dff3405fe8010a7df689e2a5530cb830b5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Eduard=20Bardaj=C3=AD=20Puig?= Date: Mon, 7 Oct 2024 15:42:28 +0100 Subject: [PATCH] Update method --- src/request/types/ordinalsMethods.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/request/types/ordinalsMethods.ts b/src/request/types/ordinalsMethods.ts index 08a55c1..f03b443 100644 --- a/src/request/types/ordinalsMethods.ts +++ b/src/request/types/ordinalsMethods.ts @@ -62,7 +62,7 @@ export const sendInscriptionsResultSchema = v.object({ }); export type SendInscriptionsResult = v.InferOutput; -export const sendInscriptionsSchema = v.object({ +export const sendInscriptionsRequestMessageSchema = v.object({ ...rpcRequestMessageSchema.entries, ...v.object({ method: v.literal(sendInscriptionsMethodName), @@ -70,7 +70,9 @@ export const sendInscriptionsSchema = v.object({ id: v.string(), }).entries, }); -export type SendInscriptionsRequestMessage = v.InferOutput; +export type SendInscriptionsRequestMessage = v.InferOutput< + typeof sendInscriptionsRequestMessageSchema +>; export type SendInscriptions = MethodParamsAndResult< SendInscriptionsParams,