forked from Koniverse/SubWallet-Extension
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update token, network before Karura Campaign
- Loading branch information
Showing
2 changed files
with
15 additions
and
4 deletions.
There are no files selected for viewing
13 changes: 13 additions & 0 deletions
13
packages/extension-base/src/services/migration-service/scripts/BeforeKaruraCampaign.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
// Copyright 2019-2022 @subwallet/extension-koni authors & contributors | ||
// SPDX-License-Identifier: Apache-2.0 | ||
|
||
import BaseMigrationJob from '@subwallet/extension-base/services/migration-service/Base'; | ||
|
||
export default class BeforeKaruraCampaign extends BaseMigrationJob { | ||
public override async run (): Promise<void> { | ||
const state = this.state; | ||
|
||
state.chainService.disableChain('goldberg_testnet'); | ||
await state.chainService.updateAssetSetting('karura-NATIVE-KAR', { visible: true }); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters