-
Notifications
You must be signed in to change notification settings - Fork 146
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: show correct amount for nonWitnessUtxo, ref #5113 #5354
Conversation
WalkthroughThe recent updates enhance Bitcoin transaction handling in two key areas. First, new utility functions Changes
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configration File (
|
src/app/features/ledger/flows/bitcoin-tx-signing/steps/approve-bitcoin-sign-ledger-tx.tsx
Outdated
Show resolved
Hide resolved
src/app/store/accounts/blockchain/bitcoin/native-segwit-account.hooks.ts
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 1
Review Details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files selected for processing (2)
- src/app/features/ledger/flows/bitcoin-tx-signing/steps/approve-bitcoin-sign-ledger-tx.tsx (2 hunks)
- src/app/store/accounts/blockchain/bitcoin/native-segwit-account.hooks.ts (2 hunks)
Files skipped from review due to trivial changes (1)
- src/app/features/ledger/flows/bitcoin-tx-signing/steps/approve-bitcoin-sign-ledger-tx.tsx
Additional comments not posted (1)
src/app/store/accounts/blockchain/bitcoin/native-segwit-account.hooks.ts (1)
18-18
: The addition ofisDefined
andreverseBytes
from@shared/utils
aligns with the need for robust data manipulation and validation as described in the PR summary. This change supports the new functionality introduced in the transaction update functions.
src/app/store/accounts/blockchain/bitcoin/native-segwit-account.hooks.ts
Outdated
Show resolved
Hide resolved
d239e56
to
76fa95e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
Review Details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files selected for processing (2)
- src/app/features/ledger/flows/bitcoin-tx-signing/steps/approve-bitcoin-sign-ledger-tx.tsx (2 hunks)
- src/app/store/accounts/blockchain/bitcoin/native-segwit-account.hooks.ts (2 hunks)
Files skipped from review as they are similar to previous changes (2)
- src/app/features/ledger/flows/bitcoin-tx-signing/steps/approve-bitcoin-sign-ledger-tx.tsx
- src/app/store/accounts/blockchain/bitcoin/native-segwit-account.hooks.ts
src/app/store/accounts/blockchain/bitcoin/native-segwit-account.hooks.ts
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
Review Details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files selected for processing (1)
- src/app/store/accounts/blockchain/bitcoin/native-segwit-account.hooks.ts (2 hunks)
Files skipped from review as they are similar to previous changes (1)
- src/app/store/accounts/blockchain/bitcoin/native-segwit-account.hooks.ts
aaf9edf
to
80dd9da
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @pete-watters
80dd9da
to
810e14d
Compare
Thank you for your patience with me 🙏 |
810e14d
to
bf018fc
Compare
bf018fc
to
2abad35
Compare
@kyranjamie @fbwoolf: I'll merge this now as it's showing the right amount thanks to #5363. Let me know if you need me to change anything else in a follow up. I can add the multi-sig example to |
To the best of my understanding, the changes in #5363 didn't actually change any functionality FYI, just refactored it to be more readable 🤔 |
This PR ensures we display the amount correctly when trying to sign
nonWitnessUtxo
s with ledger.Summary by CodeRabbit
New Features
Bug Fixes