MyCrypto/shared/enclave/server/handlers/displayAddress.ts

8 lines
341 B
TypeScript

import { getWalletLib } from 'shared/enclave/server/wallets';
import { DisplayAddressParams, DisplayAddressResponse } from 'shared/enclave/types';
export function displayAddress(params: DisplayAddressParams): Promise<DisplayAddressResponse> {
const wallet = getWalletLib(params.walletType);
return wallet.displayAddress(params.path);
}