Removes unnecessary new Buffer
This commit is contained in:
parent
e2e190c766
commit
e6a9186af3
1 changed files with 1 additions and 1 deletions
|
@ -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([
|
||||
|
|
Loading…
Reference in a new issue