Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
constructor(config: NetworkConfig) {
super(config.bitcoreUrls, socketWorkerFactory)
this.assetSymbol = config.symbol
this.network = config
this.discovery = new WorkerDiscovery(discoveryWorkerFactory, new XpubWorker(), xpubWasmFilePromise, this)
}
constructor(public assetSymbol: string, bitcoreUrls: string[]) {
super(bitcoreUrls, socketWorkerFactory)
this.network = coininfo(assetSymbol).toBitcoinJS()
this.discovery = new WorkerDiscovery(discoveryWorkerFactory, xpubWorker, xpubWasmFilePromise, this)
}