HD wallet fromMaterHex allows specifying network

[#60]
This commit is contained in:
Wei Lu 2014-03-11 22:22:03 +08:00
parent 4b1b9d9cb6
commit 142b847968

View file

@ -36,9 +36,9 @@ function arrayEqual(a, b) {
HDWallet.getChecksum = base58.getChecksum;
HDWallet.fromMasterHex = function(hex) {
HDWallet.fromMasterHex = function(hex, network) {
var bytes = convert.hexToBytes(hex)
return new HDWallet(convert.bytesToString(bytes))
return new HDWallet(convert.bytesToString(bytes), network)
}
HDWallet.fromBase58 = function(input) {