From b03d1500ee1ce9ebaf5f0d525c5070d44dd2eef8 Mon Sep 17 00:00:00 2001 From: Carter Jernigan Date: Mon, 20 Dec 2021 08:18:06 -0500 Subject: [PATCH] Address review comments --- ui-lib/src/main/java/cash/z/ecc/ui/MainActivity.kt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ui-lib/src/main/java/cash/z/ecc/ui/MainActivity.kt b/ui-lib/src/main/java/cash/z/ecc/ui/MainActivity.kt index 7dc9df49..69402edd 100644 --- a/ui-lib/src/main/java/cash/z/ecc/ui/MainActivity.kt +++ b/ui-lib/src/main/java/cash/z/ecc/ui/MainActivity.kt @@ -17,6 +17,7 @@ import androidx.compose.ui.Modifier import androidx.core.content.res.ResourcesCompat import androidx.core.splashscreen.SplashScreen.Companion.installSplashScreen import androidx.lifecycle.lifecycleScope +import cash.z.ecc.android.sdk.type.WalletBirthday import cash.z.ecc.android.sdk.type.ZcashNetwork import cash.z.ecc.sdk.model.PersistableWallet import cash.z.ecc.sdk.model.SeedPhrase @@ -176,9 +177,10 @@ class MainActivity : ComponentActivity() { // a backup, then the user has a valid backup. walletViewModel.persistBackupComplete() + val network = ZcashNetwork.fromResources(application) val restoredWallet = PersistableWallet( - ZcashNetwork.fromResources(application), - null, + network, + WalletBirthday(network.saplingActivationHeight), SeedPhrase(restoreViewModel.userWordList.current.value) ) walletViewModel.persistExistingWallet(restoredWallet)