Skip to content

Commit 4b444af

Browse files
committed
fix: fix deriveType type
1 parent b420f9f commit 4b444af

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

packages/kit/src/provider/Container/CreateAddressContainer/index.tsx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import { useIntl } from 'react-intl';
55
import { Button, Dialog, Toast } from '@onekeyhq/components';
66
import type { IButtonProps } from '@onekeyhq/components';
77
import type { IDBAccount } from '@onekeyhq/kit-bg/src/dbs/local/types';
8+
import type { IAccountDeriveTypes } from '@onekeyhq/kit-bg/src/vaults/types';
89
import {
910
EAppEventBusNames,
1011
appEventBus,
@@ -55,7 +56,7 @@ function BasicCreateAddressDialogContent({
5556
) => void;
5657
networkId: string;
5758
indexedAccountId?: string;
58-
deriveType: string;
59+
deriveType: IAccountDeriveTypes;
5960
autoCreateAddress: boolean;
6061
}) {
6162
const {
@@ -97,7 +98,7 @@ function CreateAddressDialogContent({
9798
) => void;
9899
networkId: string;
99100
indexedAccountId?: string;
100-
deriveType: string;
101+
deriveType: IAccountDeriveTypes;
101102
autoCreateAddress: boolean;
102103
}) {
103104
return (
@@ -160,7 +161,7 @@ function BasicCreateAddressContainer() {
160161
}: {
161162
networkId: string;
162163
indexedAccountId: string;
163-
deriveType: string;
164+
deriveType: IAccountDeriveTypes;
164165
promiseId: number;
165166
autoCreateAddress: boolean;
166167
}) => {

packages/shared/src/eventBus/appEventBus.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ export interface IAppEventBusPayload {
269269
indexedAccountId: string;
270270
promiseId: number;
271271
autoCreateAddress: boolean;
272-
deriveType: string;
272+
deriveType: IAccountDeriveTypes;
273273
};
274274
}
275275

0 commit comments

Comments
 (0)