mirror of
https://github.com/status-im/MyCrypto.git
synced 2025-02-10 18:16:45 +00:00
8 lines
367 B
TypeScript
8 lines
367 B
TypeScript
|
import { getWalletLib } from 'shared/enclave/server/wallets';
|
||
|
import { SignTransactionParams, SignTransactionResponse } from 'shared/enclave/types';
|
||
|
|
||
|
export function signTransaction(params: SignTransactionParams): Promise<SignTransactionResponse> {
|
||
|
const wallet = getWalletLib(params.walletType);
|
||
|
return wallet.signTransaction(params.transaction, params.path);
|
||
|
}
|