Skip to content

Commit

Permalink
Wallet is only setup if there is a walletId present
Browse files Browse the repository at this point in the history
  • Loading branch information
SwenVanZanten committed Nov 15, 2019
1 parent 2b548f8 commit bb099d0
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions VergeiOS.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -2470,8 +2470,8 @@
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
CF_BUNDLE_BUILD_VERSION_STRING = 201911060001;
CF_BUNDLE_SHORT_VERSION_STRING = 1.2.2;
CF_BUNDLE_BUILD_VERSION_STRING = 201911140001;
CF_BUNDLE_SHORT_VERSION_STRING = 1.2.3;
CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES;
CLANG_ANALYZER_NONNULL = YES;
CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
Expand Down Expand Up @@ -2534,8 +2534,8 @@
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
CF_BUNDLE_BUILD_VERSION_STRING = 201911060001;
CF_BUNDLE_SHORT_VERSION_STRING = 1.2.2;
CF_BUNDLE_BUILD_VERSION_STRING = 201911140001;
CF_BUNDLE_SHORT_VERSION_STRING = 1.2.3;
CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES;
CLANG_ANALYZER_NONNULL = YES;
CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
Expand Down
2 changes: 1 addition & 1 deletion VergeiOS/Controllers/Setup/FinishSetupViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ class FinishSetupViewController: AbstractPaperkeyViewController {

self.credentials.reset(mnemonic: mnemonic, passphrase: passphrase)

walletClient.createWallet(
self.walletClient.createWallet(
walletName: "ioswallet",
copayerName: "iosuser",
m: 1,
Expand Down
4 changes: 2 additions & 2 deletions VergeiOS/Repositories/ApplicationRepository.swift
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class ApplicationRepository {

// Is the wallet already setup?
var setup: Bool {
return self.mnemonic?.count == 12 && (self.passphrase?.count ?? 0) > 7 && self.pin != ""
return self.mnemonic?.count == 12 && (self.passphrase?.count ?? 0) > 7 && self.pin != "" && self.walletId != nil
}

// Store the wallet pin in the app key chain.
Expand All @@ -34,7 +34,7 @@ class ApplicationRepository {
if self.pin.count > 0 {
self.pinCount = self.pin.count
}

userDefaults.register(defaults: ["wallet.pinCount": 6])
return userDefaults.integer(forKey: "wallet.pinCount")
}
Expand Down

0 comments on commit bb099d0

Please sign in to comment.