Address: Use defaultNetwork if network is not specified
This commit is contained in:
parent
6e36baebc6
commit
eb72310a62
|
@ -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…
Reference in New Issue