Address: Use defaultNetwork if network is not specified

This commit is contained in:
Braydon Fuller 2014-12-01 18:07:39 -05:00
parent 6e36baebc6
commit eb72310a62
1 changed files with 1 additions and 1 deletions

View File

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