Formatting
This commit is contained in:
+17
-6
@@ -100,8 +100,12 @@ export class AppService extends EventEmitter<AppEventMap> {
|
||||
const templates = await engine.listImportedTemplates();
|
||||
|
||||
templates.forEach(async (template) => {
|
||||
engine.updateUnspentOutputsForTemplate(generateTemplateIdentifier(template));
|
||||
engine.subscribeToScriptHashForTemplate(generateTemplateIdentifier(template));
|
||||
engine.updateUnspentOutputsForTemplate(
|
||||
generateTemplateIdentifier(template),
|
||||
);
|
||||
engine.subscribeToScriptHashForTemplate(
|
||||
generateTemplateIdentifier(template),
|
||||
);
|
||||
});
|
||||
};
|
||||
|
||||
@@ -127,7 +131,14 @@ export class AppService extends EventEmitter<AppEventMap> {
|
||||
});
|
||||
const rates = await RatesService.create(settings);
|
||||
|
||||
return new AppService(engine, walletStorage, config, electrum, rates, settings);
|
||||
return new AppService(
|
||||
engine,
|
||||
walletStorage,
|
||||
config,
|
||||
electrum,
|
||||
rates,
|
||||
settings,
|
||||
);
|
||||
}
|
||||
|
||||
constructor(
|
||||
@@ -298,9 +309,9 @@ export class AppService extends EventEmitter<AppEventMap> {
|
||||
|
||||
async start(): Promise<void> {
|
||||
// Start rates in the background so BCH -> fiat conversions become reactive in the TUI.
|
||||
this.rates.start().catch((err) =>
|
||||
console.error('Error starting rates service:', err),
|
||||
);
|
||||
this.rates
|
||||
.start()
|
||||
.catch((err) => console.error("Error starting rates service:", err));
|
||||
|
||||
// Get the invitations db
|
||||
const invitationsDb = this.storage.child("invitations");
|
||||
|
||||
Reference in New Issue
Block a user