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

Bugfix: Default lowest denomination #1

Merged
merged 1 commit into from
Jan 12, 2024

Conversation

aknowak01
Copy link
Contributor

Bugfix: Default lowest denomination

The main goal for this branch is to set the lowest denomination as default and swap places of token denomination in transaction view. Previous order was from the highest to the lowest. After change, it is from the lowest to the highest. The additional goal for this branch is to globally refactor names of denomination models: defaultTokenDenomination -> networkTokenDenomination and lowestTokenDenomination -> defaultTokenDenomination.

List of changes:

  • changed getter method with order of token denomination models to swap from lowest to highest in token_alias_model.dart
  • changed factory return in token_form_state.dart from default token denomination to the lowest token denomination
  • changed default token denomination model in token_form_cubit.dart and token_form_state.dart to the lowest token denomination model
  • updated token amount preview widget, to use calculated token value based on selected denomination. Previously this widget contained simple getters, which didn't update widget when user changed denomination.
  • renamed defaultTokenDenomination -> networkTokenDenomination and lowestTokenDenomination -> defaultTokenDenomination throughout the application

@aknowak01 aknowak01 self-assigned this Jan 10, 2024
@aknowak01 aknowak01 force-pushed the ak-bugfix/default-lowest-denomination branch from 6e99a76 to f66ea23 Compare January 11, 2024 08:03
The main goal for this branch is to set the lowest denomination as default and swap places of token denomination in transaction view. Previous order was from the highest to the lowest. After change, it is from the lowest to the highest. The additional goal for this branch is to globally refactor names of denomination models: defaultTokenDenomination -> networkTokenDenomination and lowestTokenDenomination -> defaultTokenDenomination.

List of changes:
- changed getter method with order of token denomination models to swap from lowest to highest in token_alias_model.dart
- changed factory return in token_form_state.dart from default token denomination to the lowest token denomination
- changed default token denomination model in token_form_cubit.dart and token_form_state.dart to the lowest token denomination model
- updated token amount preview widget, to use calculated token value based on selected denomination. Previously this widget contained simple getters, which didn't update widget when user changed denomination.
- renamed defaultTokenDenomination -> networkTokenDenomination and lowestTokenDenomination -> defaultTokenDenomination throughout the application
@aknowak01 aknowak01 force-pushed the ak-bugfix/default-lowest-denomination branch from f66ea23 to cb015cc Compare January 11, 2024 08:09
@kronikarz kronikarz merged commit ecc5269 into dev Jan 12, 2024
3 checks passed
@kronikarz kronikarz deleted the ak-bugfix/default-lowest-denomination branch January 12, 2024 08:23
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.

4 participants