Removes unnecessary new Buffer
This commit is contained in:
parent
e2e190c766
commit
e6a9186af3
@ -169,7 +169,7 @@ HDWallet.prototype.toHex = function(priv) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
HDWallet.prototype.toBase58 = 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)
|
var checksum = crypto.hash256(buffer).slice(0, 4)
|
||||||
|
|
||||||
return base58.encode(Buffer.concat([
|
return base58.encode(Buffer.concat([
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user