1
1
/* eslint-disable no-use-before-define */
2
+ import { Cardano } from '@cardano-sdk/core' ;
3
+
4
+ import * as Crypto from '@cardano-sdk/crypto' ;
2
5
import {
3
6
BackgroundServices ,
4
7
UserPromptService ,
@@ -7,6 +10,15 @@ import {
7
10
env ,
8
11
logger
9
12
} from './util' ;
13
+ import { Buffer } from 'buffer' ;
14
+ import {
15
+ CommunicationType ,
16
+ InMemoryKeyAgent ,
17
+ KeyPurpose ,
18
+ SerializableInMemoryKeyAgentData ,
19
+ emip3encrypt
20
+ } from '@cardano-sdk/key-management' ;
21
+ import { HexBlob , isNotNil } from '@cardano-sdk/util' ;
10
22
import {
11
23
RemoteApiPropertyType ,
12
24
SigningCoordinator ,
@@ -23,19 +35,8 @@ import {
23
35
walletManagerProperties ,
24
36
walletRepositoryProperties
25
37
} from '@cardano-sdk/web-extension' ;
26
- import { adaPriceServiceChannel , selectors , userPromptServiceChannel , walletName } from './const' ;
27
-
28
- import * as Crypto from '@cardano-sdk/crypto' ;
29
- import { Buffer } from 'buffer' ;
30
- import { Cardano } from '@cardano-sdk/core' ;
31
- import {
32
- CommunicationType ,
33
- InMemoryKeyAgent ,
34
- SerializableInMemoryKeyAgentData ,
35
- emip3encrypt
36
- } from '@cardano-sdk/key-management' ;
37
- import { HexBlob , isNotNil } from '@cardano-sdk/util' ;
38
38
import { SodiumBip32Ed25519 } from '@cardano-sdk/crypto' ;
39
+ import { adaPriceServiceChannel , selectors , userPromptServiceChannel , walletName } from './const' ;
39
40
import { combineLatest , filter , firstValueFrom , merge , of } from 'rxjs' ;
40
41
import { runtime } from 'webextension-polyfill' ;
41
42
@@ -304,7 +305,8 @@ const createWalletIfNotExistsAndActivate = async (accountIndex: number) => {
304
305
accountIndex,
305
306
chainId : env . KEY_MANAGEMENT_PARAMS . chainId ,
306
307
getPassphrase : async ( ) => passphrase ,
307
- mnemonicWords
308
+ mnemonicWords,
309
+ purpose : KeyPurpose . STANDARD
308
310
} ,
309
311
{ bip32Ed25519, logger }
310
312
) ;
0 commit comments