Browse Source

Address: Use defaultNetwork if network is not specified

patch-2
Braydon Fuller 10 years ago
parent
commit
eb72310a62
  1. 2
      lib/address.js

2
lib/address.js

@ -66,7 +66,7 @@ function Address(data, network, type) {
}
// set defaults if not set
info.network = info.network || network || 'livenet';
info.network = info.network || network || networks.defaultNetwork.name;
info.type = info.type || type || 'pubkeyhash';
// set the validated values

Loading…
Cancel
Save