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

Chore/fix url type #13675

Merged
merged 5 commits into from
Aug 7, 2024
Merged

Chore/fix url type #13675

merged 5 commits into from
Aug 7, 2024

Conversation

komret
Copy link
Contributor

@komret komret commented Aug 6, 2024

Description

Dynamic Urls must be typed as const, otherwise the Url type changes to string.

The tighter type helped me found a bug where an href was set to the URL key instead of value. This can be tested with address 1A1zP1eP5QGefi2DMPTfTL5SLmv7DivfNa. on Bitcoin Cash.

Screenshots

Screenshot 2024-08-06 at 19 24 36
before:
Screenshot 2024-08-06 at 19 25 27

after:
Screenshot 2024-08-06 at 19 24 44

@komret komret added the code Code improvements label Aug 6, 2024
@komret komret requested a review from peter-sanderson August 6, 2024 13:21
@komret komret requested a review from marekrjpolak as a code owner August 6, 2024 13:21
@komret komret force-pushed the chore/fix-url-type branch from 5a2ab21 to 9aa52fa Compare August 6, 2024 13:42
@komret komret enabled auto-merge (rebase) August 6, 2024 13:42
@komret komret force-pushed the chore/fix-url-type branch from 9aa52fa to 0d47c23 Compare August 6, 2024 14:58
@komret komret disabled auto-merge August 6, 2024 17:30
@komret komret enabled auto-merge (rebase) August 7, 2024 08:51
@komret komret merged commit bc6b6d5 into develop Aug 7, 2024
24 of 26 checks passed
@komret komret deleted the chore/fix-url-type branch August 7, 2024 08:53
@bosomt
Copy link
Contributor

bosomt commented Aug 7, 2024

QA OK

link is https://trezor.io/learn/a/glossary#CashAddr

Info:

  • Suite version: web 24.8.0 (55ddef6)
  • Browser: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:128.0) Gecko/20100101 Firefox/128.0
  • OS: MacIntel
  • Screen: 1512x982
  • Device: Trezor T2T1 2.8.1 regular (revision 632b9561559b7ab6824bb7eeac072874e07b7b82)
  • Transport: BridgeTransport 2.0.33

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
code Code improvements
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants