HDWallet: remove getKeyVersion
This commit is contained in:
parent
02f5fceda7
commit
ac9e259fcd
@ -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 New Issue
Block a user