Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix: fix createAccounts params
  • Loading branch information
ccharly committed Dec 4, 2025
commit f52e5b6185f9b68f86efd4c4ce76de212bd5550e
5 changes: 2 additions & 3 deletions packages/keyring-api/src/api/v2/keyring-rpc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import type { Infer } from '@metamask/superstruct';
import { array, literal, number, string, union } from '@metamask/superstruct';
import { JsonStruct } from '@metamask/utils';

import { CreateAccountOptionsStruct } from './create-account';
import {
ExportAccountOptionsStruct,
PrivateKeyExportedAccountStruct,
Expand Down Expand Up @@ -80,9 +81,7 @@ export type GetAccountV2Response = Infer<typeof GetAccountV2ResponseStruct>;
export const CreateAccountsV2Struct = object({
...CommonHeader,
method: literal(`${KeyringRpcV2Method.CreateAccounts}`),
params: object({
// TODO
}),
params: CreateAccountOptionsStruct,
});

export type CreateAccountsV2Request = Infer<typeof CreateAccountsV2Struct>;
Expand Down