From dd2a4b826ee73d7090eee8d9655acb470472ca75 Mon Sep 17 00:00:00 2001 From: Alex Beregszaszi Date: Wed, 12 Dec 2018 14:45:41 +0000 Subject: [PATCH] Remove excess parameter from decipherBuffer --- src/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.js b/src/index.js index 234457b..a1297c6 100644 --- a/src/index.js +++ b/src/index.js @@ -277,7 +277,7 @@ Wallet.fromV3 = function (input, password, nonStrict) { } var decipher = crypto.createDecipheriv(json.crypto.cipher, derivedKey.slice(0, 16), Buffer.from(json.crypto.cipherparams.iv, 'hex')) - var seed = decipherBuffer(decipher, ciphertext, 'hex') + var seed = decipherBuffer(decipher, ciphertext) return new Wallet(seed) }