-
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
Fix: Update nns-js candid types #455
Conversation
@dskloetd please review It seems that I had bad luck with the commit I chose in the previous update. The new field was reverted shortly afterwards. |
size-limit report 📦
|
I see a lot of changes. Way more than just reverting FYI, I use this script to install ic-js locally. Maybe you can partially reuse it.
|
Good point, I tested it and all looks good. Why would I need to test that I need some extra changes in the tests in advance? What's the benefit? As long as it works to fetch and interact with the canister, the rest can easily be done afterwards. |
I'm not sure I understand the question. But what I was trying to say is that if it turns out to be complicated to make the changes work in nns-dapp, we want to figure those things out before merging in ic-js so that we don't block other changes or cause breakages for other people trying to upgrade next, while we are still trying to figure out what's wrong. |
I'll make those changes right away. I think that should be the default as you mentioned. I already know that there will be changes needed. Only if we know there won't be changes, then we can leave it withuot upgrading. |
Wait, how can you say it all looks good if there are changes required that you haven't made yet? |
Because the changes are in the tests. I tested the development server installing nns-js from this branch. |
OK, but unless you've already made the changes it's always possible that they turn out to be complicated. |
I agree that if it requires changes, they should be done immediately. But just testing them is also not enough. We want a PR to be merged so that another person doesn't get stuck. |
Motivation
The field
is_genesis
has been reverted. Therefore, I updated the candid files to the latest commit for nns-js.Changes
Automatic changes
.did
files with./scripts/import-candid
../scripts/compile-idl-js
.Manual changes
Tests
Todos
I removed a previous entry.