feat(services): add wallet and process services to the Services class and comment out pairing confirmation logic

This commit is contained in:
NicolasCantu 2025-11-28 10:44:28 +01:00
parent 09b1c29788
commit f7b9129401

View File

@ -37,6 +37,8 @@ export default class Services {
// Utilisation de la config
this.networkService = new NetworkService(APP_CONFIG.URLS.BOOTSTRAP);
this.cryptoService = new CryptoService(this.sdkService);
this.walletService = new WalletService(this.sdkService, null as any);
this.processService = new ProcessService(this.sdkService, null as any);
}
public static async getInstance(): Promise<Services> {
@ -696,7 +698,7 @@ export default class Services {
const dev = await this.walletService.getDeviceFromDatabase();
if (dev && dev.pairing_process_commitment === pid) {
const last = updated.current_process.states[updated.current_process.states.length - 1];
if (last?.public_data['pairedAddresses']) await this.confirmPairing();
// if (last?.public_data['pairedAddresses']) await this.confirmPairing();
}
}