diff --git a/demo/split-key.html b/demo/split-key.html
old mode 100755
new mode 100644
diff --git a/src/eckey.js b/src/eckey.js
index 435c81f..71cbc45 100644
--- a/src/eckey.js
+++ b/src/eckey.js
@@ -64,9 +64,9 @@ ECKey.prototype.getPubKeyHash = function () {
return this.pubKeyHash = util.sha256ripe160(this.getPub());
};
-ECKey.prototype.getBitcoinAddress = function () {
+ECKey.prototype.getBitcoinAddress = function (version) {
var hash = this.getPubKeyHash();
- var addr = new Address(hash);
+ var addr = new Address(hash,version);
return addr;
};