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

8 lines
334 B
TypeScript

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