Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(uphold): check withdrawal capabilities #637

Merged
merged 2 commits into from Jan 16, 2024

Conversation

Syn-McJ
Copy link
Member

@Syn-McJ Syn-McJ commented Jan 9, 2024

Issue being fixed or feature implemented

Before the user initiates withdrawals, we should check if the account has crypto_withdrawals capability.

What was done?

  • Added a crypto_withdrawals in a separate Swift client.
  • Check for capabilities prior to a transfer.
  • Cleaned up some unused objective-c methods.
  • Remove force logout.

How Has This Been Tested?

QA

Breaking Changes

Checklist:

  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have added or updated relevant unit/integration/functional/e2e tests
  • I have made corresponding changes to the documentation

For repository code-owners and collaborators only

  • I have assigned this pull request to a milestone

@Syn-McJ Syn-McJ requested a review from pankcuf January 9, 2024 14:55
@Syn-McJ Syn-McJ self-assigned this Jan 9, 2024
@@ -66,14 +63,6 @@ - (BOOL)isAuthorized {
return NO;
}

NSTimeInterval timeInterval = -[self.lastAccessDate timeIntervalSinceNow];
if (timeInterval > UPHOLD_KEEP_ALIVE_INTERVAL) {
[self performLogOutShouldNotifyObservers:NO];
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think we need a 10 minute force logout. It's annoying for the user and we don't have it on Android.

Copy link
Collaborator

@pankcuf pankcuf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Syn-McJ Syn-McJ merged commit c12017e into dashpay:develop Jan 16, 2024
1 check passed
@Syn-McJ Syn-McJ deleted the fix/uphold-withdrawals branch January 16, 2024 05:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants