@@ -11,10 +11,13 @@ export async function completeOnboardingProcess(): Promise<void> {
11
11
// if we already have an active profile
12
12
// it means we are trying to load again after an error
13
13
// and we don't need to add it again
14
+ console . log ( get ( activeProfile ) , get ( onboardingProfile ) )
14
15
if ( ! get ( activeProfile ) ?. id ) {
15
16
createNewProfileFromOnboardingProfile ( )
16
17
}
17
18
19
+ console . log ( get ( activeProfile ) )
20
+
18
21
const onboardingType = get ( onboardingProfile ) ?. onboardingType
19
22
const shouldRecoverAccounts = onboardingType === OnboardingType . Restore || onboardingType === OnboardingType . Claim
20
23
showBalanceOverviewPopup . set ( shouldRecoverAccounts )
@@ -31,16 +34,22 @@ export async function createOnboardingWallet(name?: string, color?: string): Pro
31
34
// 1. Get the wallet name
32
35
const walletName = name || `${ localize ( 'general.account' ) } ${ ( get ( activeWallets ) ?. length ?? 0 ) + 1 } ` ;
33
36
37
+ console . log ( "walletName" , walletName )
38
+
34
39
// 2. Create the wallet instance
35
40
const wallet = await createWallet ( )
36
41
42
+ console . log ( "wallet" , wallet )
43
+
37
44
// 3. Sync the wallet with the Node
38
45
// TODO(2.0): test & fix sync when we have iota2.0 nodes
39
46
//await account.sync(DEFAULT_SYNC_OPTIONS)
40
47
41
48
// 4. Create a wrapper over the wallet instance and the persisted data
42
49
const [ walletState , accountPersistedData ] = await buildWalletStateAndPersistedData ( wallet , walletName , color )
43
50
51
+ console . log ( "walletState" , walletState , accountPersistedData )
52
+
44
53
// TODO(2.0) Fix
45
54
// addAccountToActiveAccounts(walletState)
46
55
addWalletPersistedDataToOnboardingProfile ( walletState . id , accountPersistedData )
0 commit comments