feat(services): add wallet and process services to the Services class and comment out pairing confirmation logic
This commit is contained in:
parent
09b1c29788
commit
f7b9129401
@ -37,6 +37,8 @@ export default class Services {
|
|||||||
// Utilisation de la config
|
// Utilisation de la config
|
||||||
this.networkService = new NetworkService(APP_CONFIG.URLS.BOOTSTRAP);
|
this.networkService = new NetworkService(APP_CONFIG.URLS.BOOTSTRAP);
|
||||||
this.cryptoService = new CryptoService(this.sdkService);
|
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> {
|
public static async getInstance(): Promise<Services> {
|
||||||
@ -696,7 +698,7 @@ export default class Services {
|
|||||||
const dev = await this.walletService.getDeviceFromDatabase();
|
const dev = await this.walletService.getDeviceFromDatabase();
|
||||||
if (dev && dev.pairing_process_commitment === pid) {
|
if (dev && dev.pairing_process_commitment === pid) {
|
||||||
const last = updated.current_process.states[updated.current_process.states.length - 1];
|
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();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user