Skip to content

Commit

Permalink
chore: update types
Browse files Browse the repository at this point in the history
  • Loading branch information
camerow committed Dec 14, 2024
1 parent 705bd91 commit 325f6f8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions src/inpage/inpage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -243,12 +243,12 @@ const provider: LeatherProviderOverrides = {
};
},

request<T extends WalletMethodNames>(
method: T,
request(
method: WalletMethodNames,
params?: RpcParameter
): Promise<LeatherRpcMethodMap[T]['response']> {
): Promise<LeatherRpcMethodMap[WalletMethodNames]['response']> {
const id: string = crypto.randomUUID();
const rpcRequest = {
const rpcRequest: RpcRequest<WalletMethodNames> = {
jsonrpc: '2.0',
id,
method,
Expand Down
2 changes: 1 addition & 1 deletion src/shared/rpc/methods/send-transfer.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { z } from 'zod';

import { type BitcoinNetworkModes, type DefaultNetworkConfigurations } from '@leather.io/models';
import type { RpcSendTransferParamsLegacy, SendTransferRequestParams } from '@leather.io/rpc';
import type { RpcSendTransferParamsLegacy } from '@leather.io/rpc';
import { uniqueArray } from '@leather.io/utils';

import { FormErrorMessages } from '@shared/error-messages';
Expand Down

0 comments on commit 325f6f8

Please sign in to comment.