mirror of
https://github.com/status-im/MyCrypto.git
synced 2025-01-12 20:14:12 +00:00
8 lines
330 B
TypeScript
8 lines
330 B
TypeScript
|
import { getWalletLib } from 'shared/enclave/server/wallets';
|
||
|
import { GetChainCodeParams, GetChainCodeResponse } from 'shared/enclave/types';
|
||
|
|
||
|
export function getChainCode(params: GetChainCodeParams): Promise<GetChainCodeResponse> {
|
||
|
const wallet = getWalletLib(params.walletType);
|
||
|
return wallet.getChainCode(params.dpath);
|
||
|
}
|