-
Notifications
You must be signed in to change notification settings - Fork 47
Fix sns demo proposals creation #6722
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
base: main
Are you sure you want to change the base?
Conversation
}, | ||
] as [SnsAction], | ||
}; | ||
// const executeNSFunctionProposal = { |
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.
Is this block of code commented out because of the linter? What if we add a linter exception for the unused variable instead of commenting it?
// The following proposals require specific state to be set up first. | ||
executeNSFunctionProposal, | ||
|
||
// Fails with error: 1 defects in Proposal: There is no NervousSystemFunction with id: 1002 |
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.
do you know why we get this error now?
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 proposal was failing before this PR. I assume the backend added stricter validation, which makes sense — proposals shouldn’t be allowed to execute non-existent NS-functions.
Motivation
Currently, creating dummy SNS proposals displays an error due to multiple failing calls.
This PR addresses a few related issues to make the flow work — except for
executeNSFunctionProposal
, which is still failing.Proposals that would fail in the worst-case scenario before this PR (with reasons).
Most of the proposals fail because the neuron is locked during some proposals creation.
Changes
topic
(errors 1-2).executeNSFunctionProposal
(error 6) — solution still pending.Tests
Todos
Not necessary.