From 3bb84514d19e649afc89d103a1af83f52e8f63c7 Mon Sep 17 00:00:00 2001 From: Arve Knudsen Date: Wed, 10 Jul 2019 10:56:11 +0200 Subject: [PATCH] fix(unmarshal): provide only one arg to callback (#17) --- src/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.js b/src/index.js index 727a0e3d..5d23e019 100644 --- a/src/index.js +++ b/src/index.js @@ -96,7 +96,7 @@ module.exports = (keysProtobuf, randomBytes, crypto) => { } function unmarshalSecp256k1PrivateKey (bytes, callback) { - callback(null, new Secp256k1PrivateKey(bytes), null) + callback(null, new Secp256k1PrivateKey(bytes)) } function unmarshalSecp256k1PublicKey (bytes) {