Skip to content
This repository was archived by the owner on Apr 3, 2019. It is now read-only.

Commit ce6c552

Browse files
authored
Fix
1 parent 495f250 commit ce6c552

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Diff for: lib/privatekey.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -308,9 +308,9 @@ PrivateKey.prototype.toCompressedWIF = function() {
308308
var network = this.network;
309309
var compressed = this.compressed;
310310

311-
buf = Buffer.concat([new Buffer([network.privatekey]),
312-
this.bn.toBuffer({size: 32}),
313-
new Buffer([0x01])]);
311+
var buf = Buffer.concat([new Buffer([network.privatekey]),
312+
this.bn.toBuffer({size: 32}),
313+
new Buffer([0x01])]);
314314

315315
return Base58Check.encode(buf);
316316
};

0 commit comments

Comments
 (0)