From ac3499b650975d73930aba9d7378753dd68b693e Mon Sep 17 00:00:00 2001 From: Jan W Date: Fri, 1 Mar 2024 09:10:53 +0100 Subject: [PATCH] refactor: simplify --- features/keychain/api/index.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/features/keychain/api/index.js b/features/keychain/api/index.js index b1c92438..047f99cb 100644 --- a/features/keychain/api/index.js +++ b/features/keychain/api/index.js @@ -1,10 +1,7 @@ const createKeychainApi = ({ keychain }) => { - const exportKey = async ({ seedId, keyId, exportPrivate }) => - keychain.exportKey({ seedId, keyId, exportPrivate }) - return { keychain: { - exportKey, + exportKey: (...args) => keychain.exportKey(...args), }, } }