fix(unmarshal): provide only one arg to callback (#17)

This commit is contained in:
Arve Knudsen 2019-07-10 10:56:11 +02:00 committed by Jacob Heun
parent 3f131d4a0a
commit 3bb84514d1

View File

@ -96,7 +96,7 @@ module.exports = (keysProtobuf, randomBytes, crypto) => {
} }
function unmarshalSecp256k1PrivateKey (bytes, callback) { function unmarshalSecp256k1PrivateKey (bytes, callback) {
callback(null, new Secp256k1PrivateKey(bytes), null) callback(null, new Secp256k1PrivateKey(bytes))
} }
function unmarshalSecp256k1PublicKey (bytes) { function unmarshalSecp256k1PublicKey (bytes) {