-
Notifications
You must be signed in to change notification settings - Fork 16
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
NNS1-2886: Remove nns-proto dependency from @dfinity/nns #599
Conversation
size-limit report 📦
|
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.
Nice 👍
Cool 👍 That was the last PR? In next version of ic-js we should mark |
This should be the last PR on ic-js. I'm going to do some manual testing on NNS dapp to make sure everything still work with the HW and then update nns-dapp. |
Super! |
Manually tested that the following still work with hardware wallet:
Do you want to deprecate the package? (or point me how to do it) |
Motivation
The NNS dapp now requires version 2.4.9 of the Internet Computer Ledger app.
See for context: https://forum.dfinity.org/t/nns-dapp-to-remove-protobuf-dependency-upgrade-your-ledger-ic-app-to-2-4-9/27712
This means that we no longer need to use a separate code path with protocol buffers when making hardware wallet transactions but can instead use the exact same code path as for normal transactions.
NNS-dapp already doesn't use hardware wallet specific code paths since dfinity/nns-dapp#4373
Changes
@dfinity/nns
on@dfinity/nns-proto
.Note that there is one slight behavior change. Previously
listNeurons
would throwFeatureNotSupportedError
if you try to call it withcertified == false
withthis.hardwareWallet == true
. Since we no longer havethis.hardwareWallet
, we can't do this anymore. The hardware wallet will now return an empty signature and it's up to the signing identity to throw an error as a response. NNS dapp does this, but also doesn't calllistNeurons
withcertified = false
.Tests
Hardware wallet specific tests have been removed.
Todos