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(wallet): fix wallet_setting keys #4976

Merged
merged 3 commits into from
Nov 30, 2022

Conversation

sdbondi
Copy link
Member

@sdbondi sdbondi commented Nov 29, 2022

Description

  • Fixes various typos in wallet settings keys
  • Removes usage if Display impl for key to string conversion
  • Add key name db migration

Motivation and Context

A number of key names had typos, this is likely because it is not clear that the string used comes from the Display impl.
This PR uses the DbKey type in the function signatures to ensure that keys are well formed and replaces the Display impl with to_key_string to make it clear that these keys are used as keys, and do not need to be human readable

How Has This Been Tested?

Manually, wallet updates keys and works

Copy link
Collaborator

@SWvheerden SWvheerden left a comment

Choose a reason for hiding this comment

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

utACK

Copy link
Collaborator

@stringhandler stringhandler left a comment

Choose a reason for hiding this comment

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

Way better

@stringhandler stringhandler merged commit f2cbe6f into tari-project:development Nov 30, 2022
@sdbondi sdbondi deleted the fix-db-keys-on-wallet branch November 30, 2022 07:01
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.

3 participants