Browse Source

HD wallet fromMaterHex allows specifying network

[#60]
hk-custom-address
Wei Lu 11 years ago
parent
commit
142b847968
  1. 4
      src/hdwallet.js

4
src/hdwallet.js

@ -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) {

Loading…
Cancel
Save