Browse Source

Honor publicKey.network on create multisig address

Closes #870
patch-2
Esteban Ordano 10 years ago
parent
commit
5ef9975ac5
  1. 1
      lib/address.js

1
lib/address.js

@ -262,6 +262,7 @@ Address._transformScript = function(script, network){
*/
Address.createMultisig = function(publicKeys, threshold, network) {
var Script = require('./script');
network = network || publicKeys[0].network;
return new Address(Script.buildMultisigOut(publicKeys, threshold), network || Networks.defaultNetwork);
};

Loading…
Cancel
Save