Skip to content

Commit fa6d262

Browse files
authored
Merge pull request Koniverse#3099 from Koniverse/koni/dev/issue-3081
[Issue 3081] fix: change initiation order of chain service
2 parents c17a72a + adba816 commit fa6d262

File tree

2 files changed

+4
-2
lines changed
  • packages/extension-base/src

2 files changed

+4
-2
lines changed

packages/extension-base/src/koni/background/handlers/State.ts

+4
Original file line numberDiff line numberDiff line change
@@ -334,6 +334,8 @@ export default class KoniState {
334334
await this.dbService.stores.crowdloan.removeEndedCrowdloans();
335335

336336
await this.startSubscription();
337+
338+
this.chainService.checkLatestData();
337339
}
338340

339341
public async initMantaPay (password: string) {
@@ -1884,6 +1886,8 @@ export default class KoniState {
18841886

18851887
await this.chainService.init();
18861888
this.afterChainServiceInit();
1889+
1890+
this.chainService.checkLatestData();
18871891
}
18881892

18891893
public async enableMantaPay (updateStore: boolean, address: string, password: string, seedPhrase?: string) {

packages/extension-base/src/services/chain-service/index.ts

-2
Original file line numberDiff line numberDiff line change
@@ -604,8 +604,6 @@ export class ChainService {
604604
await this.initAssetSettings();
605605
this.initAssetRefMap();
606606
await this.autoEnableTokens();
607-
608-
this.checkLatestData();
609607
}
610608

611609
initAssetRefMap () {

0 commit comments

Comments
 (0)