-
Notifications
You must be signed in to change notification settings - Fork 63
LW-12624: Fix output mapping on hardware wallets #1616
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
LW-12624: Fix output mapping on hardware wallets #1616
Conversation
* | ||
* @param outputs The outputs to be verified. | ||
*/ | ||
hasBabbageOutput(outputs: Array<Serialization.TransactionOutput>): boolean { |
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.
We can probably make this a method on the TransactionBody class
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.
Good idea, it would deduplicate this
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.
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.
Great work! 🕵️
Failing test |
a2b3c5c
to
2135507
Compare
fixed in b20f328 |
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.
Great work @AngelCastilloB
2135507
to
3de9a1d
Compare
Context
We had a round-trip issue in our hardware wallet output mappings. This PR introduces a change to check for the actual format on the raw CBOR and passes as as context to the type mappers
Proposed Solution
Analyze the raw CBOR to detect the output format and pass it as part of the transformation context.