Skip to content

Conversation

@0xApotheosis
Copy link
Member

@0xApotheosis 0xApotheosis commented Jan 15, 2022

Description

  • Increases the font size of the AddressInput component if the asset to be sent is Bitcoin
  • Adds logic to dynamically reduce the default inline padding, as moving from sm to md font sizes causes Native Segwit addresses to clip against the QR code button

Notes for the reviewer

  • CAIP2 used as a stable way to check if the asset being sent is Bitcoin
  • Font size is optimized for Native Segwit addresses (P2SH and P2PKH will still show some whitespace) - we could go down the path of working out what kind of Bitcoin account type has been entered (if valid), but this gets messy and is likely not necessary

Notice

Before submitting a pull request, please make sure you have answered the following:

  • Have you followed the guidelines in our Contributing guide?
  • Have you checked to ensure there aren't other open Pull Requests for the same update/change?
  • Do all new and existing tests pass? Does the linter pass?

Pull Request Type

  • 🐛 Bug fix (Non-breaking Change: Fixes an issue)
  • 🛠️ Chore (Non-breaking Change: Doc updates, pkg upgrades, typos, etc..)
  • 💅 New Feature (Breaking/Non-breaking Change)

Issue (if applicable)

Addresses #735.

Testing

Please outline all testing steps

  • Stage a BTC send transaction to each address type:
    1. Segwit: e.g. bc1qar0srrr7xfkvy5l643lydnw9re59gtzzwf5mdq
    2. P2SH: e.g. 3J98t1WpEZ73CNmQviecrnyiWrnqRhWNLy
    3. P2PKH: e.g. 1BvBMSEYstWetqTFn5Au4m4GFg7xJaNVN2

Screenshots (if applicable)

New design:

Screen Shot 2022-01-16 at 7 34 45 am

@0xApotheosis 0xApotheosis requested a review from a team as a code owner January 15, 2022 23:20
@0xApotheosis
Copy link
Member Author

Closing this, as I misread the issue description and added a functionality that was never needed.

The real fix is a simple one-liner here: https://github.com/shapeshift/web/pull/803/files

kaladinlight pushed a commit that referenced this pull request Apr 7, 2023
feat(investor-foxy): use "KnownChainIds" instead of "ChainTypes"

BREAKING CHANGE: Requires updated peerDependencies
kaladinlight pushed a commit that referenced this pull request Apr 7, 2023
# [@shapeshiftoss/investor-foxy-v4.0.0](https://github.com/shapeshift/lib/compare/@shapeshiftoss/investor-foxy-v3.4.2...@shapeshiftoss/investor-foxy-v4.0.0) (2022-06-09)

### Features

* **investor-yearn:** use "KnownChainIds" instead of "ChainTypes" ([#779](shapeshift/lib#779)) ([f44bc8f](shapeshift/lib@f44bc8f))

### BREAKING CHANGES

* **investor-yearn:** Requires updated peerDependencies
kaladinlight pushed a commit that referenced this pull request Apr 7, 2023
# [@shapeshiftoss/investor-yearn-v4.0.0](https://github.com/shapeshift/lib/compare/@shapeshiftoss/investor-yearn-v3.0.3...@shapeshiftoss/investor-yearn-v4.0.0) (2022-06-09)

### Features

* **investor-yearn:** use "KnownChainIds" instead of "ChainTypes" ([#779](shapeshift/lib#779)) ([f44bc8f](shapeshift/lib@f44bc8f))

### BREAKING CHANGES

* **investor-yearn:** Requires updated peerDependencies
@coderabbitai coderabbitai bot mentioned this pull request Jan 7, 2026
1 task
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.

1 participant