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

8 lines
334 B
TypeScript
Raw Normal View History

2018-05-04 04:40:32 +00:00
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);
}