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

wallet loader improvements #572

Merged

Conversation

itswisdomagain
Copy link
Contributor

@itswisdomagain itswisdomagain commented Jan 29, 2020

  • rename WalletLoader.wallet to WalletLoader.firstWallet to better highlight possible multiwallet presence in usage sites which would encourage refactoring where necessary to cater for all wallets rather than just one
  • add WalletLoader.wallets helper property to access an array of all wallets in the app, sorted by id.

Requires planetdecred/dcrlibwallet#98.

- rename WalletLoader.wallet to WalletLoader.firstWallet to better highlight possible multiwallet presence in usage sites which would encourage refactoring where necessary to cater for all wallets rather than just one
- add WalletLoader.wallets helper property to access an array of all wallets in the app, sorted by id.
Copy link
Contributor

@bgptr bgptr left a comment

Choose a reason for hiding this comment

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

LGTM

@itswisdomagain itswisdomagain merged commit 2c43799 into planetdecred:master Jan 29, 2020
@itswisdomagain itswisdomagain deleted the fix-default-wallet-getter branch February 3, 2020 08:32
@itswisdomagain itswisdomagain restored the fix-default-wallet-getter branch February 3, 2020 08:32
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.

2 participants