Skip to content

FIX: Unwanted Errors on Sudo Page When Submitting Calls #11426

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

Merged
merged 2 commits into from
Mar 27, 2025

Conversation

ap211unitech
Copy link
Member

📝 Description

The Sudo page sometimes returns unexpected errors when submitting a call. However, the same action works correctly when performed from the Extrinsics page.

To resolve this issue, we are aligning the Sudo page's submission behavior with the Extrinsics page, which functions correctly. This involves analyzing the working implementation on the Extrinsics page and applying the necessary adjustments to the Sudo page.

This fix ensures a more consistent and error-free experience when submitting calls via the Sudo page.

🤔 Previous Behaviour

Screen.Recording.2025-03-26.at.12.44.34.mov

✅ Current Behaviour

Screen.Recording.2025-03-26.at.12.47.04.mov

@ap211unitech ap211unitech self-assigned this Mar 26, 2025
@ap211unitech ap211unitech linked an issue Mar 26, 2025 that may be closed by this pull request
Copy link
Member

@TarikGul TarikGul left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Clean and simple fix. 🚀

@ap211unitech ap211unitech merged commit dec8c2c into master Mar 27, 2025
5 checks passed
@ap211unitech ap211unitech deleted the fix/sudo-page branch March 27, 2025 12:33
[]
);

return isMine
? (
<StyledSection className={className}>
<Extrinsic
defaultValue={apiDefaultTxSudo}
defaultValue={withWeight ? api.tx.sudo.sudoUncheckedWeight : api.tx.sudo.sudo}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This causes state loss when the weight override is toggled. Please fix.

@polkadot-js-bot
Copy link

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@polkadot-js polkadot-js locked as resolved and limited conversation to collaborators Mar 30, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

JS Error on Sudo page for polkadot.js
5 participants