Skip to content

Commit

Permalink
chore: update version of leather/rpc
Browse files Browse the repository at this point in the history
  • Loading branch information
camerow committed Dec 16, 2024
1 parent 2533000 commit cae6c9a
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 16 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@
"@leather.io/eslint-config": "0.7.0",
"@leather.io/panda-preset": "0.5.2",
"@leather.io/prettier-config": "0.6.0",
"@leather.io/rpc": "2.3.0",
"@leather.io/rpc": "2.4.0",
"@ls-lint/ls-lint": "2.2.3",
"@mdx-js/loader": "3.0.0",
"@pandacss/dev": "0.46.1",
Expand Down
32 changes: 22 additions & 10 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

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 cae6c9a

Please sign in to comment.