HDWallet: remove getKeyVersion
This commit is contained in:
parent
02f5fceda7
commit
ac9e259fcd
1 changed files with 1 additions and 5 deletions
|
@ -118,7 +118,7 @@ HDWallet.prototype.getFingerprint = function() {
|
|||
}
|
||||
|
||||
HDWallet.prototype.getAddress = function() {
|
||||
return this.pub.getAddress(this.getKeyVersion())
|
||||
return this.pub.getAddress(this.network.pubKeyHash)
|
||||
}
|
||||
|
||||
HDWallet.prototype.toBuffer = function(priv) {
|
||||
|
@ -249,10 +249,6 @@ HDWallet.prototype.derivePrivate = function(index) {
|
|||
return this.derive(index + HDWallet.HIGHEST_BIT)
|
||||
}
|
||||
|
||||
HDWallet.prototype.getKeyVersion = function() {
|
||||
return this.network.pubKeyHash
|
||||
}
|
||||
|
||||
HDWallet.prototype.toString = HDWallet.prototype.toBase58
|
||||
|
||||
module.exports = HDWallet
|
||||
|
|
Loading…
Reference in a new issue