From c29b513da5c6a462283fd0185a725f0a3a374f6c Mon Sep 17 00:00:00 2001 From: Jean Regisser Date: Fri, 30 Aug 2024 12:41:10 +0200 Subject: [PATCH] Fix lint --- src/utils/account.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/utils/account.ts b/src/utils/account.ts index f5d298eb0a3..bae7a9fd98f 100644 --- a/src/utils/account.ts +++ b/src/utils/account.ts @@ -66,8 +66,8 @@ function salt(passphrase: string) { // - 3+ seconds on a iPhone 13 Pro // - 10+ seconds on a Pixel 4a async function _mnemonicToSeed(mnemonic: string, passphrase = '') { - var mnemonicBuffer = Buffer.from(mnemonic, 'utf8') - var saltBuffer = Buffer.from(salt(passphrase), 'utf8') + const mnemonicBuffer = Buffer.from(mnemonic, 'utf8') + const saltBuffer = Buffer.from(salt(passphrase), 'utf8') return new Promise((resolve, reject) => crypto.pbkdf2(mnemonicBuffer, saltBuffer, 2048, 64, 'SHA-512', (err, derivedKey) => { if (err) {