-
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
Update sns candid files #856
base: main
Are you sure you want to change the base?
Conversation
size-limit report 📦
|
@@ -378,6 +384,7 @@ export const fromCandidAction = (action: ActionCandid): Action => { | |||
return { Motion: action.Motion }; | |||
} | |||
|
|||
// TODO: Find a better way to log this because JSON.stringify doesn't support BigInt. |
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.
maybe something like:
JSON.stringify(action, (key, value) =>
typeof value === 'bigint' ? value.toString() : value
);
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.
Looks good, let's do it in a separate pr 👍
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.
Just sharing if interesting: we already have utils for this.
See jsonReplacer and jsonReviver of @dfinity/utils
.
Motivation
The SNS Candid types need to be updated to support
SetTopicsForCustomProposals
. One SNS has already created a proposal of this type, causing the proposals page for this SNS to break in NNS-dapp. To fix this issue and minimize risks, we are updating only the SNS-related types.Changes
./scripts/import-candid ic
Tests
Todos