From c7b50fc0cb234a1994a19dae3ab4bb505bd9f8f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Eduard=20Bardaj=C3=AD=20Puig?= Date: Thu, 26 Sep 2024 20:15:47 +0100 Subject: [PATCH] Update method name --- src/request/types/walletMethods.ts | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/request/types/walletMethods.ts b/src/request/types/walletMethods.ts index 72f9d32..b9ee332 100644 --- a/src/request/types/walletMethods.ts +++ b/src/request/types/walletMethods.ts @@ -49,17 +49,17 @@ export type GetWalletType = MethodParamsAndResult< v.InferOutput >; -export const getPermissionsMethodName = 'wallet_getPermissions'; -export const getPermissionsParamsSchema = v.nullish(v.null()); -export const getPermissionsResultSchema = v.array(v.string()); -export const getPermissionsRequestMessageSchema = v.object({ +export const getCurrentPermissionsMethodName = 'wallet_getCurrentPermissions'; +export const getCurrentPermissionsParamsSchema = v.nullish(v.null()); +export const getCurrentPermissionsResultSchema = v.array(v.string()); +export const getCurrentPermissionsRequestMessageSchema = v.object({ ...rpcRequestMessageSchema.entries, ...v.object({ - method: v.literal(getPermissionsMethodName), + method: v.literal(getCurrentPermissionsMethodName), id: v.string(), }).entries, }); -export type GetPermissions = MethodParamsAndResult< - v.InferOutput, - v.InferOutput +export type GetCurrentPermissions = MethodParamsAndResult< + v.InferOutput, + v.InferOutput >;