From ac9e259fcd3f5bfb19425e27d6e7f8633ad87d48 Mon Sep 17 00:00:00 2001
From: Daniel Cousens <github@dcousens.com>
Date: Sat, 31 May 2014 18:53:39 +1000
Subject: [PATCH] HDWallet: remove getKeyVersion

---
 src/hdwallet.js | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/src/hdwallet.js b/src/hdwallet.js
index 86b6540..2888683 100644
--- a/src/hdwallet.js
+++ b/src/hdwallet.js
@@ -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