Removes unnecessary new Buffer

This commit is contained in:
Daniel Cousens 2014-05-04 11:58:01 +10:00
parent e2e190c766
commit e6a9186af3

View file

@ -169,7 +169,7 @@ HDWallet.prototype.toHex = function(priv) {
}
HDWallet.prototype.toBase58 = function(priv) {
var buffer = new Buffer(this.toBuffer(priv))
var buffer = this.toBuffer(priv)
var checksum = crypto.hash256(buffer).slice(0, 4)
return base58.encode(Buffer.concat([