-
Notifications
You must be signed in to change notification settings - Fork 20
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: remove bug for txCode #132
Conversation
Signed-off-by: Mirko Mollik <mirkomollik@gmail.com>
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.
This looks good to me. Do we need a test that covers this? Seems like a good one to cover
Tests would be good because we have none yet. This is my my e2e test of my application run into errors when using it with a pin |
Signed-off-by: Mirko Mollik <mirkomollik@gmail.com>
I also corrected another bug in the client:
So the correct way would be to pass it in request.tx_code. If so, the first if statement would be false (we have it defined in the grant because we want it) and everything works :) Another solution would be to pass user_pin and txCode to be compliant to possible older system and then remove it again when we drop the older versions |
Yeah I am leaning towards the latter. We for sure will drop it this fall, once the refactor work removing all the old support happens. In the mean time I want to have no impact on existing implementations and interop |
I will check if I can implement it without a breaking changes. If so, I will give you a ping here. |
Signed-off-by: Mirko Mollik <mirkomollik@gmail.com>
@nklomp @TimoGlastra I extended the if statements for |
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.
LGTM. Thx
Fix for the bug in 7d17d13
As explained in the comment there, the line below will overwrite the set value for the pin.
We do not need to store the value of
txCode
since this is already in the grant. So it's fine to remove this line without any side effects.