diff --git a/Example/DashSync/DSCreateBlockchainIdentityViewController.m b/Example/DashSync/DSCreateBlockchainIdentityViewController.m index 279986e17..5ba18a4e8 100644 --- a/Example/DashSync/DSCreateBlockchainIdentityViewController.m +++ b/Example/DashSync/DSCreateBlockchainIdentityViewController.m @@ -154,26 +154,24 @@ - (IBAction)done:(id)sender { } [blockchainIdentity generateBlockchainIdentityExtendedPublicKeysWithPrompt:@"Update wallet to allow for Evolution features?" completion:^(BOOL registered) { - [blockchainIdentity createFundingPrivateKeyWithPrompt:@"Register?" - completion:^(BOOL success, BOOL cancelled) { - if (success && !cancelled) { - [blockchainIdentity registerOnNetwork:steps - withFundingAccount:self.fundingAccount - forTopupAmount:topupAmount - stepCompletion:^(DSBlockchainIdentityRegistrationStep stepCompleted) { - - } - completion:^(DSBlockchainIdentityRegistrationStep stepsCompleted, NSError *_Nonnull error) { - if (error) { - [self raiseIssue:@"Error" message:error.localizedDescription]; - return; - } else { - [self.presentingViewController dismissViewControllerAnimated:TRUE completion:nil]; - } - }]; - } - }]; - }]; + [blockchainIdentity createFundingPrivateKeyWithPrompt:@"Register?" completion:^(BOOL success, BOOL cancelled) { + if (success && !cancelled) { + [blockchainIdentity registerOnNetwork:steps + withFundingAccount:self.fundingAccount + forTopupAmount:topupAmount + pinPrompt:@"Enter your PIN?" + stepCompletion:^(DSBlockchainIdentityRegistrationStep stepCompleted) {} + completion:^(DSBlockchainIdentityRegistrationStep stepsCompleted, NSError *_Nonnull error) { + if (error) { + [self raiseIssue:@"Error" message:error.localizedDescription]; + return; + } else { + [self.presentingViewController dismissViewControllerAnimated:TRUE completion:nil]; + } + }]; + } + }]; + }]; } - (void)viewController:(UIViewController *)controller didChooseWallet:(DSWallet *)wallet { diff --git a/Example/DashSync/DSCreateInvitationViewController.m b/Example/DashSync/DSCreateInvitationViewController.m index 6d21a7966..ee4691d0a 100644 --- a/Example/DashSync/DSCreateInvitationViewController.m +++ b/Example/DashSync/DSCreateInvitationViewController.m @@ -123,26 +123,24 @@ - (IBAction)done:(id)sender { DSBlockchainIdentityRegistrationStep steps = DSBlockchainIdentityRegistrationStep_L1Steps; [blockchainInvitation generateBlockchainInvitationsExtendedPublicKeysWithPrompt:@"Update wallet to allow for Evolution features?" completion:^(BOOL registered) { - [blockchainInvitation.identity createFundingPrivateKeyForInvitationWithPrompt:@"Register?" - completion:^(BOOL success, BOOL cancelled) { - if (success && !cancelled) { - [blockchainInvitation.identity registerOnNetwork:steps - withFundingAccount:self.fundingAccount - forTopupAmount:topupAmount - stepCompletion:^(DSBlockchainIdentityRegistrationStep stepCompleted) { - - } - completion:^(DSBlockchainIdentityRegistrationStep stepsCompleted, NSError *_Nonnull error) { - if (error) { - [self raiseIssue:@"Error" message:error.localizedDescription]; - return; - } else { - [self.presentingViewController dismissViewControllerAnimated:TRUE completion:nil]; - } - }]; - } - }]; - }]; + [blockchainInvitation.identity createFundingPrivateKeyForInvitationWithPrompt:@"Register?" completion:^(BOOL success, BOOL cancelled) { + if (success && !cancelled) { + [blockchainInvitation.identity registerOnNetwork:steps + withFundingAccount:self.fundingAccount + forTopupAmount:topupAmount + pinPrompt:@"Enter your PIN?" + stepCompletion:^(DSBlockchainIdentityRegistrationStep stepCompleted) {} + completion:^(DSBlockchainIdentityRegistrationStep stepsCompleted, NSError *_Nonnull error) { + if (error) { + [self raiseIssue:@"Error" message:error.localizedDescription]; + return; + } else { + [self.presentingViewController dismissViewControllerAnimated:TRUE completion:nil]; + } + }]; + } + }]; + }]; } - (void)viewController:(UIViewController *)controller didChooseWallet:(DSWallet *)wallet {